Bug 376928

Summary: Changes on mimetypes are applied after restart [patch]
Product: [Applications] digikam Reporter: Jan Wolter <online>
Component: Setup-ViewsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 5.5.0   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In: 5.5.0
Attachments: Patch

Description Jan Wolter 2017-02-25 18:34:27 UTC
Created attachment 104222 [details]
Patch

Changes on mimetypes (Settings -> Views -> Mime Types) are applied only after restarting digikam. The attached patch fixes that in a way that the changes are directly applied (by scanning the collection) after confirming the dialog.
Comment 1 caulier.gilles 2017-02-28 08:53:37 UTC
Git commit f51f6f5ec6cc2bafdbaf86cac7c429e71a8a9e69 by Gilles Caulier.
Committed on 28/02/2017 at 08:51.
Pushed by cgilles into branch 'master'.

Apply patch from Jan Wolter to apply type mime registration in database without to re-start application.
The database is now re-scanned in background after each changes in this config panel.
FIXED-IN: 5.5.0

M  +2    -1    NEWS
M  +17   -17   utilities/setup/album/setupalbumview.cpp
M  +2    -2    utilities/setup/album/setupalbumview.h
M  +1    -1    utilities/setup/album/setupcategory.cpp
M  +2    -2    utilities/setup/album/setupcategory.h
M  +34   -15   utilities/setup/album/setupmime.cpp

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