use KSycoca for updating OpenPreferredSearchTool action
ClosedPublic

Authored by pdabrowski on Sat, May 9, 2:40 PM.

Details

Summary

Remove all random updates of OpenPreferredSearchTool action, and
use KSycoca for updating it as discussed in https://phabricator.kde.org/D22594#663847

Enhancement for D29441 for bug #420911 caused by D22594.
The bug was fixed by D29442.

CCBUG: 420911

Test Plan
$ cd ${KDE_INSTALL_DIR}/usr/share/applications

$ sudo mv org.kde.kfind.desktop org.kde.kfind.desktop_
$ kbuildsycoca5

$ sudo mv org.kde.kfind.desktop_ org.kde.kfind.desktop
$ kbuildsycoca5

Diff Detail

Repository
R318 Dolphin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
pdabrowski created this revision.Sat, May 9, 2:40 PM
Restricted Application added a project: Dolphin. · View Herald TranscriptSat, May 9, 2:40 PM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
pdabrowski requested review of this revision.Sat, May 9, 2:40 PM
anthonyfieroni added inline comments.
src/dolphinmainwindow.cpp
209

Use new connect syntax.

pdabrowski updated this revision to Diff 82388.Sat, May 9, 5:31 PM
pdabrowski marked an inline comment as done.Sat, May 9, 5:34 PM
pdabrowski added inline comments.
src/dolphinmainwindow.cpp
209

Done.

Also using signal:

void databaseChanged();

instead of:

void databaseChanged(const QStringList &changedResources); // KF6: deprecate
pdabrowski marked 2 inline comments as done.Sat, May 9, 5:35 PM
pdabrowski edited the summary of this revision. (Show Details)Thu, May 21, 8:40 PM
pdabrowski edited the summary of this revision. (Show Details)
pdabrowski edited the summary of this revision. (Show Details)Thu, May 21, 8:44 PM
pdabrowski edited the test plan for this revision. (Show Details)Thu, May 21, 8:46 PM
elvisangelaccio accepted this revision.Sat, May 23, 9:41 PM

Not sure if this should go to release/20.04, but I guess it shouldn't hurt.

This revision is now accepted and ready to land.Sat, May 23, 9:41 PM
This revision was automatically updated to reflect the committed changes.