summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp14
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;