diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-23 12:33:39 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-23 12:33:39 +0200 |
commit | 8884b89ce8bdca791455f6f71d14fbbeab2a1784 (patch) | |
tree | 33536b9d53253f893cd7f95fa63cc916c5a63fe4 /src | |
parent | What's overkilling? (diff) | |
download | rekonq-8884b89ce8bdca791455f6f71d14fbbeab2a1784.tar.xz |
Me stupid.. (again)!!
We have a newMainWindow function, use it instead of forcing the getter
mainWindow() to create a new one...
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/application.cpp b/src/application.cpp index 0b9666a1..9c4507f0 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -192,11 +192,7 @@ void Application::slotSaveConfiguration() const MainWindow *Application::mainWindow() { if(m_mainWindows.isEmpty()) - { - kDebug() << "No extant windows: creating one new..."; - MainWindow *w = newMainWindow(); - return w; - } + return 0; MainWindow *active = qobject_cast<MainWindow*>(QApplication::activeWindow()); |