summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-03-18 18:57:35 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-03-18 18:57:35 +0100
commit41036829864f7deed9c5ae6c2e080c0fe5a22dd4 (patch)
tree5183c6db3f4d89277f1015df629c76d1dd43e008 /src
parentRemove the "AutoSaver" attempt :( (diff)
downloadrekonq-41036829864f7deed9c5ae6c2e080c0fe5a22dd4.tar.xz
Fallback opening a new tab page is session file is NOT found
BUG: 316963
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp5
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;