[dolphin/search] Avoid unnecesary reloads on setSearchPath
ClosedPublic

Authored by iasensio on Sun, Oct 6, 10:06 PM.

Details

Summary

Check in setSearchPath() if the url passed is already the searchPath
This was causing an effect where reloading the same search URL results on buttons From Here/Everywhere toggling.
See D24422

Test Plan

On your home folder press Ctrl-F several times
Buttons From Here/Everywhere should now not toggle each time

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.
iasensio created this revision.Sun, Oct 6, 10:06 PM
Restricted Application added a project: Dolphin. · View Herald TranscriptSun, Oct 6, 10:06 PM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
iasensio requested review of this revision.Sun, Oct 6, 10:06 PM
ngraham accepted this revision.Sun, Oct 6, 11:55 PM
This revision is now accepted and ready to land.Sun, Oct 6, 11:55 PM
elvisangelaccio accepted this revision.Mon, Oct 7, 7:51 PM
This revision was automatically updated to reflect the committed changes.