From 96323e049c700fcd63d93f00c5b92a8ddfe0cb27 Mon Sep 17 00:00:00 2001 From: Serg Podtynnyi Date: Wed, 25 Jan 2023 00:04:54 +0700 Subject: Clear filter bar on clicking current folder in places Reset the filter bar when user clicks on the current folder in places list, also rename slot function to be more clear. BUG: 259382 --- src/dolphinmainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 9f021684c..d69514b7a 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1414,6 +1414,8 @@ void DolphinMainWindow::slotPlaceActivated(const QUrl& url) DolphinViewContainer* view = activeViewContainer(); if (view->url() == url) { + view->clearFilterBar(); // Fixes bug 259382. + // We can end up here if the user clicked a device in the Places Panel // which had been unmounted earlier, see https://bugs.kde.org/show_bug.cgi?id=161385. reloadView(); -- cgit v1.3