From 564ac2119024bd81ac0d09e80a691d73543a1270 Mon Sep 17 00:00:00 2001 From: Tirtha Chatterjee Date: Mon, 25 Jul 2011 02:03:49 +0530 Subject: Fallback on loading the homepage if restoring the session failed. --- src/application.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.1