1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[Crash] Fixed crash after closing first app window

Always create BrowserWindow with MainApp::createWindow (even in MainApp
constructor).
Regression from recent commits.
This commit is contained in:
nowrep 2014-03-12 21:36:34 +01:00
parent 493edfc655
commit 853e3905ee

View File

@ -227,9 +227,8 @@ MainApplication::MainApplication(int &argc, char** argv)
translateApp();
BrowserWindow* window = new BrowserWindow(Qz::BW_FirstAppWindow, startUrl);
BrowserWindow* window = createWindow(Qz::BW_FirstAppWindow, startUrl);
connect(window, SIGNAL(startingCompleted()), this, SLOT(restoreOverrideCursor()));
m_windows.prepend(window);
loadSettings();