diff options
| author | Frank Reininghaus <[email protected]> | 2009-08-20 15:47:38 +0000 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2009-08-20 15:47:38 +0000 |
| commit | 8e17757ae3cbdd93b200258eb646ee5408e9fdea (patch) | |
| tree | e3548dd947cd0a2b9519874d9de0c0bab58f8221 /src/dolphinmainwindow.cpp | |
| parent | 1d75c9dcae51877d15aff53b27e13f542a1bafe0 (diff) | |
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
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 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<DolphinApplication*>(qApp); - if (application && application->closedBySessionManager()) { + if (application && application->sessionSaving()) { closedByUser = false; } |
