]> cloud.milkyroute.net Git - dolphin.git/commit
settings: Fix the Use Current Location button
authorAkseli Lahtinen <akselmo@akselmo.dev>
Fri, 30 Aug 2024 10:54:56 +0000 (10:54 +0000)
committerAkseli Lahtinen <akselmo@akselmo.dev>
Fri, 30 Aug 2024 10:54:56 +0000 (10:54 +0000)
commitfc3a6594cc2572da95e7c889793363c3ecdc4635
tree0af86291cc66d84234f7b8b2c2b6b156c34bde68
parentd66414f9df71b7861d7550f53fe7987effe25008
settings: Fix the Use Current Location button

During the Dolphin settings revamp
(https://invent.kde.org/system/dolphin/-/commit/489b56b68bb29e81337e115c490eea4403001b71?)
this QUrl had been forgot to add back so that the
FoldersTabsSettingsPage knows what is the current url.

This change checks for the main window of dolphin, then gets
the URL of it whenever useCurrentLocation is called.

However, when this is used as KCM, the button is not
created, since there it doesn't make sense.

BUG:491753
src/CMakeLists.txt
src/settings/interface/folderstabssettingspage.cpp