From d9b87d8fc9e97545550348b3cc766909824cc41d8f656db9685be9a85f1938b3 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sat, 20 Feb 2016 17:30:02 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-workspace?expand=0&rev=174 --- plasmashell-disable-windowclosing-on-logout.patch | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plasmashell-disable-windowclosing-on-logout.patch b/plasmashell-disable-windowclosing-on-logout.patch index 207910b..2f8349a 100644 --- a/plasmashell-disable-windowclosing-on-logout.patch +++ b/plasmashell-disable-windowclosing-on-logout.patch @@ -1,14 +1,8 @@ diff --git a/shell/main.cpp b/shell/main.cpp -index 49ea484..0451aea 100644 +index 49ea484..68cf9e9 100644 --- a/shell/main.cpp +++ b/shell/main.cpp -@@ -130,9 +130,15 @@ int main(int argc, char *argv[]) - - auto disableSessionManagement = [](QSessionManager &sm) { - sm.setRestartHint(QSessionManager::RestartNever); -+#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0) -+ sm.setAutoCloseWindowsEnabled(false); -+#endif +@@ -133,6 +133,9 @@ int main(int argc, char *argv[]) }; QObject::connect(&app, &QGuiApplication::commitDataRequest, disableSessionManagement); QObject::connect(&app, &QGuiApplication::saveStateRequest, disableSessionManagement);