[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri May 23 23:22:28 CEST 2003
CVS commit by staikos:
edit works as advertised now, updating the data manager properly.
M +8 -8 kstplugindialog_i.cpp 1.25
--- kdeextragear-2/kst/kst/kstplugindialog_i.cpp #1.24:1.25
@@ -366,14 +366,14 @@ void KstPluginDialogI::edit_I() {
plugin->inputVectors().clear();
- for (unsigned i = 0; i < plugin->outputVectors().countS(); i++) {
- doc->vectorList.remove(plugin->outputVectors().atS(i));
- delete plugin->outputVectors().atS(i);
- }
- plugin->outputVectors().clear();
plugin->inputScalars().clear();
- for (unsigned i = 0; i < plugin->outputScalars().count(); i++) {
- doc->scalarList.remove(plugin->outputScalars().at(i));
+ while (plugin->outputVectors().countS() > 0) {
+ doc->vectorList.remove(plugin->outputVectors().atS(0));
+ delete plugin->outputVectors().atS(0);
+ plugin->outputVectors().remove(0);
+ }
+ while (plugin->outputScalars().count() > 0) {
+ doc->scalarList.remove(plugin->outputScalars().at(0));
+ plugin->outputScalars().remove(unsigned(0));
}
- plugin->outputScalars().clear();
// Save the vectors and scalars
More information about the Kst
mailing list