From 9df38fce82ed0046c6e10480dc6c8851414fe959 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 10 May 2024 03:57:55 +0300 Subject: [PATCH] generic: prepare for KMainWindow changes Signed-off-by: Ivailo Monev --- filelight/src/app/main.cpp | 3 ++- okular/shell/main.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 {