From: Nicolas Fella Date: Sun, 1 Sep 2024 16:21:53 +0000 (+0200) Subject: Don't crash when there is no view container yet X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/d578157585949cc2a298b57792c78c222fab99cb?ds=sidebyside Don't crash when there is no view container yet SENTRY: DOLPHIN-2Q3 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index f68939f87..54cd3bf71 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -597,7 +597,7 @@ void DolphinMainWindow::showEvent(QShowEvent *event) { KXmlGuiWindow::showEvent(event); - if (!event->spontaneous()) { + if (!event->spontaneous() && m_activeViewContainer) { m_activeViewContainer->view()->setFocus(); } }