diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-13 03:57:58 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-13 03:57:58 +0200 |
commit | 4757621b22d86b15d26983ff896ad21a0941c2d7 (patch) | |
tree | 1aecfc7a35c4fbbb6c358bfdc0beb3bb62f1d9a2 /src/application.cpp | |
parent | rekonq 0.2.57 with new "new tab" page. (diff) | |
download | rekonq-4757621b22d86b15d26983ff896ad21a0941c2d7.tar.xz |
Fixing session manager behaviour following a bit dolphin's code
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/application.cpp b/src/application.cpp index 1e30cfd0..88eb3c58 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -84,11 +84,6 @@ Application::~Application() int Application::newInstance() { - if( isSessionRestored() && sessionManager()->restoreSession() ) - { - return 1; - } - KCmdLineArgs::setCwd(QDir::currentPath().toUtf8()); KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); @@ -120,9 +115,12 @@ int Application::newInstance() } else { - // creating new window - MainWindow *w = newMainWindow(); - w->slotHome(); + if(!sessionRestored()) + { + // creating new window + MainWindow *w = newMainWindow(); + w->slotHome(); + } } return 0; |