Bug 376928 - Changes on mimetypes are applied after restart [patch]
Summary: Changes on mimetypes are applied after restart [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Views (show other bugs)
Version: 5.5.0
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-25 18:34 UTC by Jan Wolter
Modified: 2017-08-10 10:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.5.0


Attachments
Patch (1.48 KB, patch)
2017-02-25 18:34 UTC, Jan Wolter
Details

Note You need to log in before you can comment on or make changes to this bug.
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