]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Don't crash when there is no view container yet
[dolphin.git] / 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();
     }
 }