[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Wed May 5 15:53:03 UTC 2004


CVS commit by okellogg: 

load(): Be forgiving about a failed load of an operation.
(Motivation: This is currently a make-or-break on loading
foreign XMI files.)


  M +5 -1      classifier.cpp   1.39


--- kdesdk/umbrello/umbrello/classifier.cpp  #1.38:1.39
@@ -362,5 +362,9 @@ bool UMLClassifier::load(QDomElement& el
                             !this->addOperation(op) ) {
                                 delete op;
-                                return false;
+                                //return false;
+                                // Returning false here will spoil the entire
+                                // load. At this point the user has been warned
+                                // that something went wrong so let's still try
+                                // our best effort.
                         }
                 } else if (!loadSpecialized(element)) {






More information about the umbrello-devel mailing list