Bug 357504 - File might get invisible in album after rename (by removing file extension)
Summary: File might get invisible in album after rename (by removing file extension)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-file (show other bugs)
Version: 4.14.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-04 10:14 UTC by Gregor Müllegger
Modified: 2022-01-31 21:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor Müllegger 2016-01-04 10:14:28 UTC
I once made a few files disappear in my album by renaming them. It was not obvious to me at first as they just disappear. The reason that they were not listed anymore was that I accidentally removed the file extension while renaming (so it did not have a .jpg ending anymore).

The behaviour makes totally sense as digikam can only preview image files, and those are usually identified by the file extension. However it would be more fool-proof if it was harder to actually remove the file suffix.

For example, what about two different input boxes, one for the actual file name and one for the file extension. Keeping them separate would make changing/deleting the fileextension very explicit. Another alternative would be to show a (slightly annoying) confirmation modal that asks if you really want to change the file extension as this change will make the file invisible in digikam.

Reproducible: Always

Steps to Reproduce:
1. Select one file in the album view
2. Press F2 to rename
3. Enter a new filename and remove the file extension (that might happen by accident if you use Ctrl+A and then start typing)
4. The renamed file is no longer visible in the album
Comment 1 Maik Qualmann 2016-01-12 18:33:18 UTC
Git commit 78222b4b6475ab0ef7855119c84c28c865bf4c3b by Maik Qualmann.
Committed on 12/01/2016 at 18:31.
Pushed by mqualmann into branch 'master'.

makes extension also in single file mode only with [ext] accessible
FIXED-IN: 5.0.0

M  +2    -1    NEWS
M  +8    -7    utilities/advancedrename/advancedrenamedialog.cpp

http://commits.kde.org/digikam/78222b4b6475ab0ef7855119c84c28c865bf4c3b