]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Don't crash when there is no view container yet
authorNicolas Fella <nicolas.fella@gmx.de>
Sun, 1 Sep 2024 16:21:53 +0000 (18:21 +0200)
committerNicolas Fella <nicolas.fella@gmx.de>
Mon, 2 Sep 2024 11:04:14 +0000 (11:04 +0000)
SENTRY: DOLPHIN-2Q3

src/dolphinmainwindow.cpp

index f68939f87dcc82ebcc90d809672759a5884f7a03..54cd3bf71b974d6fa66ad340302d12f31321d8a6 100644 (file)
@@ -597,7 +597,7 @@ void DolphinMainWindow::showEvent(QShowEvent *event)
 {
     KXmlGuiWindow::showEvent(event);
 
-    if (!event->spontaneous()) {
+    if (!event->spontaneous() && m_activeViewContainer) {
         m_activeViewContainer->view()->setFocus();
     }
 }