1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

Mac: Fix crash on startup when showing incompatible profile dialog

QEvent::ApplicationActivate is sent when incompatible profile
warning QMessageBox is shown. We should not create new BrowserWindow
at this point as the initialization is not yet completed.

New window should really be only created when there is no
application window at all.

Closes #1890
This commit is contained in:
David Rosca 2016-03-21 11:09:44 +01:00
parent 11792ee778
commit 91e6c2eb71

View File

@ -1127,7 +1127,7 @@ bool MainApplication::event(QEvent* e)
return true;
case QEvent::ApplicationActivate:
if (m_windows.isEmpty())
if (!activeWindow() && m_windows.isEmpty())
createWindow(Qz::BW_NewWindow);
break;