From d578157585949cc2a298b57792c78c222fab99cb Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 1 Sep 2024 18:21:53 +0200 Subject: [PATCH] Don't crash when there is no view container yet SENTRY: DOLPHIN-2Q3 --- src/dolphinmainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } -- 2.47.3