[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Sat Jan 15 01:29:03 CET 2005


CVS commit by arwalker: 

If you select to save a single vector the combobox at the bottom of the Save Vectors to Disk is disabled. When a field is disabled it should have no effect on the result. However, if the combobox was set to "Save to seperate files" prior to being disabled the saved file is <requested file>.1 else it is simply <requested file>

This patch fixes this problem and saves to the same filename in all cases. 


  M +5 -1      vectorsavedialog.ui.h   1.9


--- kdeextragear-2/kst/kst/vectorsavedialog.ui.h  #1.8:1.9
@@ -62,5 +62,9 @@ void VectorSaveDialog::save()
                     for (KstVectorList::Iterator i = toSave.begin(); i != toSave.end(); ++i) {
                         KURL url2 = url;
+                        if (toSave.count() > 1) {
                         url2.setFileName(url.fileName() + QString(".%1").arg(++n));
+                        } else {
+                                url2.setFileName(url.fileName());
+                        }
                         KTempFile tf(locateLocal("tmp", "kstvectors"), "txt");
                         tf.setAutoDelete(true);




More information about the Kst mailing list