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/dolphinapplication.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/dolphinapplication.cpp')
| -rw-r--r-- | src/dolphinapplication.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/dolphinapplication.cpp b/src/dolphinapplication.cpp index 988019de1..f61bf795a 100644 --- a/src/dolphinapplication.cpp +++ b/src/dolphinapplication.cpp @@ -28,7 +28,7 @@ #include <QtDBus/QDBusConnection> DolphinApplication::DolphinApplication() : - m_lastId(0), m_closedBySessionManager(false) + m_lastId(0) { new ApplicationAdaptor(this); QDBusConnection::sessionBus().registerObject("/dolphin/Application", this); @@ -100,17 +100,6 @@ int DolphinApplication::newInstance() return 0; } -bool DolphinApplication::closedBySessionManager() const -{ - return m_closedBySessionManager; -} - -void DolphinApplication::commitData(QSessionManager& sessionManager) { - m_closedBySessionManager = true; - KUniqueApplication::commitData(sessionManager); - m_closedBySessionManager = false; -} - int DolphinApplication::openWindow(const KUrl& url) { DolphinMainWindow* win = createMainWindow(); |
