Bug 389508 - Dates Side Menu Is Not Updated Automatically After Exif Date Change [patch]
Summary: Dates Side Menu Is Not Updated Automatically After Exif Date Change [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Date (show other bugs)
Version: 5.8.0
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-27 13:11 UTC by hardy.public
Modified: 2018-03-20 19:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments
updateDAlbums.patch (3.94 KB, patch)
2018-01-27 20:27 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hardy.public 2018-01-27 13:11:44 UTC
If I have a scanned image with today's date, then I change EXIF "Creation date and time" and "Original date and time" by Ctrl+Shft+M, the Dates side menu doesn't reflect the change until digiKam is restarted.

For example, a scan of an old photograph from 1893 is set to 01/01/1893 12:00:00 but no 1893 year appears in the Dates side menu until digiKam is restarted.

Additionally if I then change the date again to 1894, 1894 is missing, as mentioned, but the 1893 year selection remains. However, clicking on 1893 yields no image. So it seems the database is correctly updated but the construction of the Dates menu remains unchanged until a restart.

I tried the following but they are also ineffective:
View -> Refresh doesn't fix it.
Item -> Reread Metadata From Images.
Comment 1 hardy.public 2018-01-27 13:12:57 UTC
Timeline is also affected.
Comment 2 Maik Qualmann 2018-01-27 20:27:03 UTC
Created attachment 110159 [details]
updateDAlbums.patch

This patch adds an update to the date albums when changing the date of an image. The update timer is currently set to 30 seconds and can still be reduced. Updating the date albums is time consuming. I think a patch for digikam-6.0.0.

Maik
Comment 3 Maik Qualmann 2018-03-20 19:38:25 UTC
Git commit 537bca8473d58c28e26d4a8d83af6c2afc8fd073 by Maik Qualmann.
Committed on 20/03/2018 at 19:37.
Pushed by mqualmann into branch 'master'.

add signal/slot from the image attribute watcher to date album update timer
FIXED-IN: 6.0.0

M  +2    -3    NEWS
M  +6    -1    core/libs/album/albummanager.cpp

https://commits.kde.org/digikam/537bca8473d58c28e26d4a8d83af6c2afc8fd073