]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Don't update preferred search action on window activation
authorKai Uwe Broulik <kde@privat.broulik.de>
Wed, 6 May 2020 08:52:09 +0000 (10:52 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Wed, 6 May 2020 08:52:09 +0000 (10:52 +0200)
I don't see why this is necessary and causes a blocking(!) StatJob every single time the window is focussed,
worse, ends up in an infinite loop when the window loses focus on an auth prompt.

CCBUG: 420911

Differential Revision: https://phabricator.kde.org/D29441

src/dolphinmainwindow.cpp

index 7ad136fe738f02606b60263f7cc5bbe886605406..f374db41ded32c1a4a169a4963bea4a32d61903c 100644 (file)
@@ -2297,8 +2297,6 @@ bool DolphinMainWindow::event(QEvent *event)
         QWhatsThisClickedEvent* whatsThisEvent = dynamic_cast<QWhatsThisClickedEvent*>(event);
         QDesktopServices::openUrl(QUrl(whatsThisEvent->href()));
         return true;
         QWhatsThisClickedEvent* whatsThisEvent = dynamic_cast<QWhatsThisClickedEvent*>(event);
         QDesktopServices::openUrl(QUrl(whatsThisEvent->href()));
         return true;
-    } else if (event->type() == QEvent::WindowActivate) {
-        updateOpenPreferredSearchToolAction();
     }
     return KXmlGuiWindow::event(event);
 }
     }
     return KXmlGuiWindow::event(event);
 }