diff options
| author | Nicolas Fella <[email protected]> | 2024-09-01 18:21:53 +0200 |
|---|---|---|
| committer | Nicolas Fella <[email protected]> | 2024-09-02 11:04:14 +0000 |
| commit | d578157585949cc2a298b57792c78c222fab99cb (patch) | |
| tree | 437e579f796bb9b5716d92fbeecff48b1819a53f /src | |
| parent | 07866ce589908dde2e9bd5abeffa7991f290434b (diff) | |
Don't crash when there is no view container yet
SENTRY: DOLPHIN-2Q3
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 2 |
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(); } } |
