summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-30 17:31:36 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commitab5b4316783e763741db7d66460d616619f23989 (patch)
tree1e4f7612e5978d44c2fbd9d2d3bb157cf54f44e4 /src/main.cpp
parentSave & restore window dimension/position (diff)
downloadrekonq-ab5b4316783e763741db7d66460d616619f23989.tar.xz
Implement RekonqWindow
Now, all the "KMainWindow" logic is moved to this new class. "Restored" session management. NOTE: Probably needs some fixes yet, but seems going in the right direction...
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3a37f067..7b468bae 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -91,5 +91,11 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
QCoreApplication::setApplicationName(QLatin1String("rekonq"));
QCoreApplication::setApplicationVersion(REKONQ_VERSION);
+ if (app.isSessionRestored())
+ {
+ for (int i = 1; TabWindow::canBeRestored(i); i++)
+ app.newTabWindow()->restore(i);
+ }
+
return app.exec();
}