Don't update preferred search action on window activation

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
This commit is contained in:
Kai Uwe Broulik 2020-05-06 10:52:09 +02:00
parent 9f268f5f76
commit 801fdf4c59

View file

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