From 8884b89ce8bdca791455f6f71d14fbbeab2a1784 Mon Sep 17 00:00:00 2001
From: Andrea Diamantini <adjam7@gmail.com>
Date: Fri, 23 Oct 2009 12:33:39 +0200
Subject: Me stupid.. (again)!! We have a newMainWindow function, use it
 instead of forcing the getter mainWindow() to create a new one...

---
 src/application.cpp | 6 +-----
 1 file changed, 1 insertion(+), 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());
     
-- 
cgit v1.2.1