summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-10 11:20:20 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-10 11:20:20 +0100
commit0924811b2c0bdb4c205647a7b536229f11cc1294 (patch)
tree4e692db43920e1a082fa834e81d1d24635446ba4 /src
parentSetting m_url in the ctor. Seems safer :) (diff)
downloadrekonq-0924811b2c0bdb4c205647a7b536229f11cc1294.tar.xz
Safer Application::mainWindow() call. No 0 return..
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp3
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;