[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri May 23 22:48:25 CEST 2003
CVS commit by staikos:
clean up vectors when new plugin fails
M +6 -0 kstplugindialog_i.cpp 1.23
--- kdeextragear-2/kst/kst/kstplugindialog_i.cpp #1.22:1.23
@@ -320,4 +320,7 @@ void KstPluginDialogI::new_I() {
if (!plugin || !plugin->isValid()) {
KMessageBox::sorry(0L, i18n("There is an error in the plugin you entered. Please fix it."));
+ for (unsigned i = 0; i < plugin->outputVectors().count(); i ++) {
+ doc->vectorList.remove(plugin->outputVectors().atS(i));
+ }
delete plugin;
return;
@@ -325,4 +328,7 @@ void KstPluginDialogI::new_I() {
if (!saveInputs(plugin) || !saveOutputs(plugin)) {
+ for (unsigned i = 0; i < plugin->outputVectors().count(); i ++) {
+ doc->vectorList.remove(plugin->outputVectors().atS(i));
+ }
delete plugin;
return;
More information about the Kst
mailing list