From ab5b4316783e763741db7d66460d616619f23989 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 30 Aug 2012 17:31:36 +0200 Subject: 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... --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.cpp') 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(); } -- cgit v1.2.1