[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Wed Mar 2 23:07:48 CET 2005
CVS commit by arwalker:
Don't bother to update an invalid object as we're about to delete it.
M +9 -1 kstdataobject.cpp 1.38
--- kdeextragear-2/kst/kst/kstdataobject.cpp #1.37:1.38
@@ -89,4 +89,5 @@ bool KstDataObject::loadInputs() {
bool rc = true;
QValueList<QPair<QString,QString> >::Iterator i;
+
KST::vectorList.lock().readLock();
for (i = _inputVectorLoadQueue.begin(); i != _inputVectorLoadQueue.end(); ++i) {
@@ -128,5 +129,12 @@ bool KstDataObject::loadInputs() {
_inputScalarLoadQueue.clear();
_inputStringLoadQueue.clear();
+
+ //
+ // do not update the object if we couldn't load it...
+ //
+ if (rc) {
update();
+ }
+
return rc;
}
More information about the Kst
mailing list