diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index a9082d7a..d9c9968f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,6 +29,7 @@ // Local Includes #include "application.h" +#include "mainwindow.h" // KDE Includes #include <KAboutData> @@ -212,5 +213,9 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) Application app; + if (app.isSessionRestored()) + for (int i = 1; MainWindow::canBeRestored(i); i++) + app.newMainWindow()->restore(i); + return app.exec(); } |