dolphin/fix-check-for-session-close.patch
Raymond Wooninck 087fcd4e4f Accepting request 356598 from home:wolfi323:branches:KDE:Applications
- Added fix-check-for-session-close.patch: don't ask for confirmation on logout when storing the session (boo#953014, kde#353548)

OBS-URL: https://build.opensuse.org/request/show/356598
OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/dolphin?expand=0&rev=26
2016-01-28 21:29:20 +00:00

30 lines
882 B
Diff

From: Wolfgang Bauer <wbauer@tmo.at>
Date: Thu, 28 Jan 2016 20:03:14 +0000
Subject: Fix check whether window is closed by session management
X-Git-Url: http://quickgit.kde.org/?p=dolphin.git&a=commitdiff&h=bf1dbee1d6a709983d9f5034c61e2f005fdc6aee
---
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
---
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -347,7 +347,7 @@
// 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;
}