[Kst] kdeextragear-2/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Thu Aug 26 22:28:48 CEST 2004
CVS commit by rchern:
If opening a file is not successful, don't add it to the recent files list.
M +4 -3 kst.cpp 1.222
--- kdeextragear-2/kst/kst/kst.cpp #1.221:1.222
@@ -837,9 +837,10 @@ void KstApp::slotFileOpen() {
doc->deleteContents();
doc->setModified(false);
- doc->openDocument(fileToOpen);
+ if (doc->openDocument(fileToOpen)) {
setCaption(doc->title());
addRecentFile(fileToOpen);
}
}
+ }
slotUpdateStatusMsg(i18n("Ready"));
More information about the Kst
mailing list