summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-02-16 17:04:37 +0100
committerSlávek Banko <[email protected]>2013-02-16 17:04:47 +0100
commit56137a1306001e2ce7014282474e1032c143fa29 (patch)
treeca4c1015e376f9f6ffcaa1c46fae4b3d7ab89352
parentfefb9d145dfef89ed68494e8f01ba0c3880bddee (diff)
downloadkaffeine-56137a1306001e2ce7014282474e1032c143fa29.tar.gz
kaffeine-56137a1306001e2ce7014282474e1032c143fa29.zip
Fix closing during saving session
-rw-r--r--kaffeine/src/kaffeine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kaffeine/src/kaffeine.cpp b/kaffeine/src/kaffeine.cpp
index ca4b946..54d9df1 100644
--- a/kaffeine/src/kaffeine.cpp
+++ b/kaffeine/src/kaffeine.cpp
@@ -1523,7 +1523,9 @@ void Kaffeine::slotQuit()
m_systemTray = NULL;
}*/
- TDEApplication::exit(0);
+ if ( !kapp->sessionSaving() ) {
+ TDEApplication::exit(0);
+ }
}
void Kaffeine::closeEvent(TQCloseEvent* e)