[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Fri Aug 13 00:42:17 CEST 2004
CVS commit by arwalker:
Ensure that we do everything necessary when shutting down from queryClose()
Fixes 87085
M +9 -2 kst.cpp 1.206
--- kdeextragear-2/kst/kst/kst.cpp #1.205:1.206
@@ -799,5 +799,12 @@ void KstApp::readProperties(KConfig* con
bool KstApp::queryClose() {
- return doc->saveModified();
+ if (doc->saveModified()) {
+ doc->cancelUpdate();
+ _stopping = true;
+ kapp->processEvents(); // danger
+ doc->deleteContents();
+ return true;
+ }
+ return false;
}
More information about the Kst
mailing list