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

George Staikos staikos at kde.org
Wed Mar 29 00:31:12 CEST 2006


SVN commit 523733 by staikos:

don't give a false error


 M  +4 -2      kstdatasource.cpp  


--- trunk/extragear/graphics/kst/src/libkst/kstdatasource.cpp #523732:523733
@@ -196,8 +196,10 @@
             cw->setConfig(cfg);
             return cw;
           }
-          KstDebug::self()->log(i18n("Error in plugin %1: Configuration widget is of the wrong type.").arg(service->property("Name").toString()), KstDebug::Error);
-          delete rc;
+          if (rc) {
+            KstDebug::self()->log(i18n("Error in plugin %1: Configuration widget is of the wrong type.").arg(service->property("Name").toString()), KstDebug::Error);
+            delete rc;
+          }
         }
 
         return 0L;


More information about the Kst mailing list