diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-02-09 11:51:40 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-02-09 11:51:40 +0100 |
commit | 1bdfda1fceef996067d2747cb0d2d73ba504cd55 (patch) | |
tree | 4945865346966f14e71a27ce5965a244df56c439 | |
parent | Increase minimum setting window size to 576 (diff) | |
download | rekonq-1bdfda1fceef996067d2747cb0d2d73ba504cd55.tar.xz |
Get SURE window exists
-rw-r--r-- | src/application.cpp | 4 |
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: |