diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-03-18 18:57:35 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-03-18 18:57:35 +0100 |
commit | 41036829864f7deed9c5ae6c2e080c0fe5a22dd4 (patch) | |
tree | 5183c6db3f4d89277f1015df629c76d1dd43e008 | |
parent | Remove the "AutoSaver" attempt :( (diff) | |
download | rekonq-41036829864f7deed9c5ae6c2e080c0fe5a22dd4.tar.xz |
Fallback opening a new tab page is session file is NOT found
BUG: 316963
-rw-r--r-- | src/application.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp index 6b9b9490..696185f9 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -288,10 +288,11 @@ int Application::newInstance() loadUrl(KUrl("about:home"), Rekonq::NewPrivateWindow); break; } - if (SessionManager::self()->restoreSessionFromScratch()) + if (!SessionManager::self()->restoreSessionFromScratch()) { - break; + loadUrl(KUrl("about:home") , Rekonq::NewTab); } + break; default: newWindow()->tabWidget()->newTab(); break; |