[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [rekonq] src: Fallback on loading the homepage if restoring the
From: Tirtha Chatterjee <tirtha.p.chatterjee () gmail ! com>
Date: 2011-07-24 20:35:29
Message-ID: 20110724203529.295D1A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 564ac2119024bd81ac0d09e80a691d73543a1270 by Tirtha Chatterjee.
Committed on 24/07/2011 at 22:33.
Pushed by chatterjee into branch 'master'.
Fallback on loading the homepage if restoring the session failed.
M +4 -2 src/application.cpp
http://commits.kde.org/rekonq/564ac2119024bd81ac0d09e80a691d73543a1270
diff --git a/src/application.cpp b/src/application.cpp
index 8bca4f6..bd77505 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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic