mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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:
parent
11792ee778
commit
91e6c2eb71
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user