diff options
| author | Mathieu Tarral <[email protected]> | 2015-02-04 10:22:03 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2015-02-04 10:22:03 +0100 |
| commit | c7258487094c7e16258ad90e384c3a87605dfc95 (patch) | |
| tree | 78d6a990ebf0569bd9fe609913143f064f1d09c5 /src/dolphinmainwindow.cpp | |
| parent | b15ee4cf70a23e04a74b368dce7ab2a20afe944d (diff) | |
Port Dolphin away from KApplication, KCmdLineArgs and K4AboutData
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 218698bef..0ee6e5c2c 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -21,7 +21,6 @@ #include "dolphinmainwindow.h" -#include "dolphinapplication.h" #include "dolphindockwidget.h" #include "dolphincontextmenu.h" #include "dolphinnewfilemenu.h" @@ -69,6 +68,7 @@ #include <KToolInvocation> #include <KUrlComboBox> +#include <QApplication> #include <QMenuBar> #include <QClipboard> #include <QToolButton> @@ -353,8 +353,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; - DolphinApplication *application = qobject_cast<DolphinApplication*>(qApp); - if (application && application->sessionSaving()) { + if (qApp->isSessionRestored()) { closedByUser = false; } |
