[Kst] [Bug 129712] Should not prompt for overwriting of file when saving
Andrew Walker
arwalker at sumusltd.com
Mon Jun 26 20:02:45 CEST 2006
------- 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=129712
arwalker sumusltd com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From arwalker sumusltd com 2006-06-26 20:02 -------
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);
More information about the Kst
mailing list