summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp9
-rw-r--r--src/tabwindow/rekonqwindow.cpp2
2 files changed, 7 insertions, 4 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();
}
diff --git a/src/tabwindow/rekonqwindow.cpp b/src/tabwindow/rekonqwindow.cpp
index afebf79c..1717403c 100644
--- a/src/tabwindow/rekonqwindow.cpp
+++ b/src/tabwindow/rekonqwindow.cpp
@@ -348,7 +348,7 @@ bool RekonqWindow::restore(int number, bool show)
{
if (show)
RekonqWindow::show();
- return false;
+ return true;
}
return false;
}