| Summary: | Click Cancel on the save dialog after being prompted to save on kst close causes kst to close | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Rick Chern <rchern> |
| Component: | general | Assignee: | Rick Chern <rchern> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.x | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Rick Chern
2004-08-13 23:38:18 UTC
On Friday 13 August 2004 17:38, Rick Chern wrote: > Steps to reproduce > - start kst > - create some plots using data wizard or otherwise > - try to close kst by clicking X of window manager > - click Yes to prompt > - click cancel on save dialog > > Kst exits. > Also, if File->Quit is used instead of clicking X, the save prompt shows up > twice, then exits. This is a critical bug and can be fixed for 0.99. I will add it to the release notes. I agree. On August 13, 2004 07:59 pm, George Staikos wrote: > ------- You are receiving this mail because: ------- > You are the assignee for the bug, or are watching the assignee. > > http://bugs.kde.org/show_bug.cgi?id=87161 > > > > > ------- Additional Comments From staikos kde org 2004-08-14 01:59 ------- > > On Friday 13 August 2004 17:38, Rick Chern wrote: > > Steps to reproduce > > - start kst > > - create some plots using data wizard or otherwise > > - try to close kst by clicking X of window manager > > - click Yes to prompt > > - click cancel on save dialog > > > > Kst exits. > > Also, if File->Quit is used instead of clicking X, the save prompt shows > > up twice, then exits. > > This is a critical bug and can be fixed for 0.99. I will add it to the > release notes. > _______________________________________________ > Kst mailing list > Kst@kde.org > https://mail.kde.org/mailman/listinfo/kst CVS commit by rchern:
If Cancel is clicked on save as dialog, don't close kst
M +5 -1 kst.cpp 1.209
M +1 -1 kst.h 1.97
M +3 -1 kstdoc.cpp 1.113
--- kdeextragear-2/kst/kst/kst.cpp #1.208:1.209
@@ -866,5 +866,5 @@ void KstApp::slotFileSave() {
}
-void KstApp::slotFileSaveAs() {
+bool KstApp::slotFileSaveAs() {
slotUpdateStatusMsg(i18n("Saving file with a new filename..."));
@@ -883,6 +883,10 @@ void KstApp::slotFileSaveAs() {
setCaption(kapp->caption() + ": " + doc->title());
}
+ } else {
+ slotUpdateStatusMsg(i18n("Ready"));
+ return false;
}
slotUpdateStatusMsg(i18n("Ready"));
+ return true;
}
--- kdeextragear-2/kst/kst/kstdoc.cpp #1.112:1.113
@@ -113,5 +113,7 @@ bool KstDoc::saveModified(bool doDelete)
case KMessageBox::Yes:
if (_title == i18n("Untitled")) {
- win->slotFileSaveAs();
+ if (!win->slotFileSaveAs()) {
+ return false;
+ }
} else {
saveDocument(absFilePath());
--- kdeextragear-2/kst/kst/kst.h #1.96:1.97
@@ -199,5 +199,5 @@ class KstApp : public KMdiMainFrm {
/** save a document by a new filename*/
- void slotFileSaveAs();
+ bool slotFileSaveAs();
/** asks for saving if the file is modified, then closes the actual
|