summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-02-09 11:51:40 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-02-09 11:51:40 +0100
commit1bdfda1fceef996067d2747cb0d2d73ba504cd55 (patch)
tree4945865346966f14e71a27ce5965a244df56c439
parentIncrease minimum setting window size to 576 (diff)
downloadrekonq-1bdfda1fceef996067d2747cb0d2d73ba504cd55.tar.xz
Get SURE window exists
-rw-r--r--src/application.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 18d19d9d..d8044e24 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -474,6 +474,10 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
? newMainWindow()
: mainWindow();
+ // be SURE window exists
+ if (!w)
+ w = newMainWindow();
+
switch (newType)
{
case Rekonq::NewTab: