diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7f6fcd9e..c7adff7f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,6 +29,7 @@ // Local Includes #include "application.h" +#include "sessionmanager.h" #include "tabwindow.h" #include "urlresolver.h" @@ -224,10 +225,12 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) QCoreApplication::setApplicationVersion(REKONQ_VERSION); if (app.isSessionRestored()) - { for (int i = 1; TabWindow::canBeRestored(i); i++) - app.newTabWindow()->restore(i); - } + { + TabWindow * newTabWindow = app.newTabWindow(false); + if (newTabWindow->restore(i)) + SessionManager::self()->restoreTabWindow(newTabWindow); + } return app.exec(); } |