From 8e17757ae3cbdd93b200258eb646ee5408e9fdea Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Thu, 20 Aug 2009 15:47:38 +0000 Subject: Use KApplication::sessionSaving() to determine if Dolphin is closed by the session manager - there's no need to reinvent the wheel ;-) Thanks to Lubos Lunak for the hint. svn path=/trunk/KDE/kdebase/apps/; revision=1013726 --- src/dolphinmainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 6443494ef..7e841cef3 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -430,7 +430,7 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event) // by the session manager because the session is closed bool closedByUser = true; DolphinApplication *application = qobject_cast(qApp); - if (application && application->closedBySessionManager()) { + if (application && application->sessionSaving()) { closedByUser = false; } -- cgit v1.3