diff options
| author | Wolfgang Bauer <[email protected]> | 2016-01-28 21:03:14 +0100 |
|---|---|---|
| committer | Wolfgang Bauer <[email protected]> | 2016-01-28 21:03:14 +0100 |
| commit | bf1dbee1d6a709983d9f5034c61e2f005fdc6aee (patch) | |
| tree | 25ea94becc6c47e4156ad14f285ab968da2a2967 /src/dolphinmainwindow.cpp | |
| parent | ddc050f23596493e8debd2dfd523fd572c098d63 (diff) | |
Fix check whether window is closed by session management
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
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 81c55e814..272a78f82 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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; } |
