summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTirtha Chatterjee <tirtha.p.chatterjee@gmail.com>2011-07-25 02:03:49 +0530
committerTirtha Chatterjee <tirtha.p.chatterjee@gmail.com>2011-07-25 02:03:49 +0530
commit564ac2119024bd81ac0d09e80a691d73543a1270 (patch)
tree285960692c47c42944fd8c335e5d839fc9221b73 /src
parentSSL fixes (diff)
downloadrekonq-564ac2119024bd81ac0d09e80a691d73543a1270.tar.xz
Fallback on loading the homepage if restoring the session failed.
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 8bca4f63..bd775050 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -222,8 +222,10 @@ int Application::newInstance()
loadUrl(KUrl("about:home"), Rekonq::NewWindow);
break;
case 2: // restore session
- sessionManager()->restoreSession();
- break;
+ if (sessionManager()->restoreSession())
+ {
+ break;
+ }
default:
newMainWindow()->homePage();
break;