Summary: | Should not prompt for overwriting of file when saving | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Andrew Walker <arwalker> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Andrew Walker
2006-06-23 18:37:35 UTC
SVN commit 555217 by arwalker: BUG:129712 Do not prompt the user to overwrite a file when not necessary. Correctly set the value of prompt parameter in KstDoc::saveDocument() M +3 -3 kst.cpp --- trunk/extragear/graphics/kst/src/libkstapp/kst.cpp #555216:555217 @@ -1111,7 +1111,7 @@ do { name = sl + QString("unsaved%1.kst").arg(i); } while(QFile::exists(name)); - doc->saveDocument(name); + doc->saveDocument(name, false, false); config->writePathEntry("Document", name); config->writeEntry("NamedDocument", false); } @@ -1205,7 +1205,7 @@ slotFileSaveAs(); } else { slotUpdateStatusMsg(i18n("Saving file...")); - doc->saveDocument(doc->absFilePath()); + doc->saveDocument(doc->absFilePath(), false, false); slotUpdateStatusMsg(i18n("Ready")); } } @@ -1233,7 +1233,7 @@ if (!extension.exactMatch(newName)) { longName = newName + QString(".kst"); } - if (doc->saveDocument(longName)) { + if (doc->saveDocument(longName, false, true)) { QFileInfo saveAsInfo(longName); addRecentFile(longName); |