summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-23 12:33:39 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-23 12:33:39 +0200
commit8884b89ce8bdca791455f6f71d14fbbeab2a1784 (patch)
tree33536b9d53253f893cd7f95fa63cc916c5a63fe4 /src/application.cpp
parentWhat's overkilling? (diff)
downloadrekonq-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/application.cpp')
-rw-r--r--src/application.cpp6
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());