[Kst] branches/kst/1.3/kst/src/libkstapp
George Staikos
staikos at kde.org
Thu Oct 12 18:52:19 CEST 2006
SVN commit 594869 by staikos:
only load valid plugins
M +4 -2 kstdoc.cpp
--- branches/kst/1.3/kst/src/libkstapp/kstdoc.cpp #594868:594869
@@ -381,8 +381,10 @@
KST::addVectorToList(KstVectorPtr(avector));
} else if (e.tagName() == "plugin") {
KstDataObjectPtr p = new KstPlugin(e);
- KstWriteLocker dowl(&KST::dataObjectList.lock());
- KST::dataObjectList.append(p);
+ if (p->isValid()) {
+ KstWriteLocker dowl(&KST::dataObjectList.lock());
+ KST::dataObjectList.append(p);
+ }
} else if (e.tagName() == "curve") {
KstDataObjectPtr p = new KstVCurve(e);
KstWriteLocker dowl(&KST::dataObjectList.lock());
More information about the Kst
mailing list