This commit is contained in:
parent
c0350164cd
commit
d9b87d8fc9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user