diff options
| author | Tirtha Chatterjee <tirtha.p.chatterjee@gmail.com> | 2011-07-25 02:03:49 +0530 |
|---|---|---|
| committer | Tirtha Chatterjee <tirtha.p.chatterjee@gmail.com> | 2011-07-25 02:03:49 +0530 |
| commit | 564ac2119024bd81ac0d09e80a691d73543a1270 (patch) | |
| tree | 285960692c47c42944fd8c335e5d839fc9221b73 | |
| parent | SSL fixes (diff) | |
| download | rekonq-564ac2119024bd81ac0d09e80a691d73543a1270.tar.xz | |
Fallback on loading the homepage if restoring the session failed.
| -rw-r--r-- | src/application.cpp | 6 |
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; |
