]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix check whether window is closed by session management
authorWolfgang Bauer <wbauer@tmo.at>
Thu, 28 Jan 2016 20:03:14 +0000 (21:03 +0100)
committerWolfgang Bauer <wbauer@tmo.at>
Thu, 28 Jan 2016 20:03:14 +0000 (21:03 +0100)
qApp->isSessionRestored() specifies whether the application has been
restored by session management. This is obviously wrong here. Use
qApp->isSavingSession() instead.

BUG: 353548
FIXED-IN: 15.12.2
REVIEW: 126917

src/dolphinmainwindow.cpp

index 81c55e814c26085adfd2a9bc69fee401dc3505ed..272a78f8293dc87c1e5d6e917a29e999385e06c8 100644 (file)
@@ -347,7 +347,7 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event)
     // Find out if Dolphin is closed directly by the user or
     // by the session manager because the session is closed
     bool closedByUser = true;
-    if (qApp->isSessionRestored()) {
+    if (qApp->isSavingSession()) {
         closedByUser = false;
     }