summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-13 03:57:58 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-13 03:57:58 +0200
commit4757621b22d86b15d26983ff896ad21a0941c2d7 (patch)
tree1aecfc7a35c4fbbb6c358bfdc0beb3bb62f1d9a2 /src/main.cpp
parentrekonq 0.2.57 with new "new tab" page. (diff)
downloadrekonq-4757621b22d86b15d26983ff896ad21a0941c2d7.tar.xz
Fixing session manager behaviour following a bit dolphin's code
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index fe8ce0eb..e97f2502 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -26,6 +26,7 @@
// Local Includes
#include "application.h"
+#include "sessionmanager.h"
// KDE Includes
#include <KAboutData>
@@ -127,5 +128,11 @@ int main(int argc, char **argv)
}
Application app;
+
+ if( app.isSessionRestored() )
+ {
+ Application::sessionManager()->restoreSession();
+ }
+
return app.exec();
}