[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Mon Jun 26 20:02:11 CEST 2006


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