diff --git a/filelight/src/app/main.cpp b/filelight/src/app/main.cpp index e3737f06..9c164908 100644 --- a/filelight/src/app/main.cpp +++ b/filelight/src/app/main.cpp @@ -71,8 +71,9 @@ int main(int argc, char *argv[]) args->clear(); mw->show(); + } else { + kRestoreMainWindows(); } - else RESTORE(MainWindow); return app.exec(); } diff --git a/okular/shell/main.cpp b/okular/shell/main.cpp index 2d089834..99dc6ac3 100644 --- a/okular/shell/main.cpp +++ b/okular/shell/main.cpp @@ -50,7 +50,7 @@ int main(int argc, char** argv) // see if we are starting with session management if (app.isSessionRestored()) { - RESTORE(Shell); + kRestoreMainWindows(); } else {