[Kst] branches/work/kst/portto4/kst/src/libkstapp

Mike Fenton mike at staikos.net
Fri Jun 20 16:17:50 CEST 2008


SVN commit 822525 by fenton:

Remove Todo in save of document.  Continue to save on every request.


 M  +2 -5      document.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/document.cpp #822524:822525
@@ -53,11 +53,6 @@
 
 
 bool Document::save(const QString& to) {
-  // TODO:
-  // - KSaveFile-ish behavior
-  // - only save if changed
-  // - only setChanged(false) if save was successful
-  setChanged(false);
 
   QString file = !to.isEmpty() ? to : _fileName;
   QFile f(file);
@@ -125,6 +120,8 @@
 
   xml.writeEndDocument();
 
+  setChanged(false);
+
   return true;
 }
 


More information about the Kst mailing list