Bug 388591

Summary: Rename malfunction
Product: [Applications] digikam Reporter: Andrius <aegoreev>
Component: Albums-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin, shai
Priority: NOR    
Version: 5.9.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In: 6.0.0

Description Andrius 2018-01-05 19:19:33 UTC
Current behavior:
Open an image in digikam e.g. image #124 in the album - press F2 - type new name - press Enter - digikam switches to the next image e.g. #125 (like after deleting) however if you press Left arrow key that opens the very first image in the album (#1) ; pressing Left opens the 2nd image in the album (#2). That is a lot of pressing "-->" to get back to #124.

Expected behavior:
Open an image e.g. #124- press F2 - type in new name - press Enter
digikam stays on the same image (#124); press Right arrow key goes to #125; pressing Left (from #124) opens #123
Comment 1 Maik Qualmann 2018-01-05 19:49:20 UTC
Git commit 3fa0619f031206a2c620d8eb9661c66f51812e30 by Maik Qualmann.
Committed on 05/01/2018 at 19:47.
Pushed by mqualmann into branch 'master'.

remove album refresh to restore old behavior,
but it is possible that after renaming the order is not correct
FIXED-IN: 5.8.0

M  +2    -1    NEWS
M  +0    -1    app/items/digikamimageview.cpp

https://commits.kde.org/digikam/3fa0619f031206a2c620d8eb9661c66f51812e30
Comment 2 Andrius 2018-01-05 22:06:38 UTC
I usually sort images by date so I don't expect the order to change after renaming a file. But you are correct, some people might want the order to refresh after each rename. I guess a corresponding checkbox in settings would be fair for everyone
Comment 3 Shai Gluskin 2018-07-01 18:14:49 UTC
"some people might want the order to refresh after each rename. I guess a corresponding checkbox in settings would be fair for everyone"

That is exactly my situation. I sort on name and expect refresh after name change.
Comment 4 Maik Qualmann 2018-07-01 19:54:17 UTC
Git commit ef6a81ef2c63b31827a769f764f831716e70406d by Maik Qualmann.
Committed on 01/07/2018 at 19:52.
Pushed by mqualmann into branch 'master'.

we do not need album refresh, initialize a re-sorting fixes the problem for everyone
FIXED-IN: 6.0.0

M  +1    -0    core/app/items/digikamimageview.cpp
M  +1    -0    core/app/views/tableview/tableview.cpp

https://commits.kde.org/digikam/ef6a81ef2c63b31827a769f764f831716e70406d