diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-10 11:20:20 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-10 11:20:20 +0100 |
commit | 0924811b2c0bdb4c205647a7b536229f11cc1294 (patch) | |
tree | 4e692db43920e1a082fa834e81d1d24635446ba4 /src/application.cpp | |
parent | Setting m_url in the ctor. Seems safer :) (diff) | |
download | rekonq-0924811b2c0bdb4c205647a7b536229f11cc1294.tar.xz |
Safer Application::mainWindow() call. No 0 return..
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp index 30781609..8e870764 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -202,7 +202,7 @@ void Application::slotSaveConfiguration() const MainWindow *Application::mainWindow() { if(m_mainWindows.isEmpty()) - return 0; + return newMainWindow(); MainWindow *active = qobject_cast<MainWindow*>(QApplication::activeWindow()); @@ -348,6 +348,7 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) } // loading home pages + kDebug() << "here.."; if (mainWindow()->homePage(url)) return; |