┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Fella <[email protected]>2024-09-01 18:21:53 +0200
committerNicolas Fella <[email protected]>2024-09-02 11:04:14 +0000
commitd578157585949cc2a298b57792c78c222fab99cb (patch)
tree437e579f796bb9b5716d92fbeecff48b1819a53f
parent07866ce589908dde2e9bd5abeffa7991f290434b (diff)
Don't crash when there is no view container yet
SENTRY: DOLPHIN-2Q3
-rw-r--r--src/dolphinmainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}
}