[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat May 22 16:18:04 UTC 2004


CVS commit by okellogg: 

addObject(): Print debug message if pObject is alreadyThere.


  M +5 -4      package.cpp   1.19


--- kdesdk/umbrello/umbrello/package.cpp  #1.18:1.19
@@ -50,9 +50,10 @@ void UMLPackage::addObject(const UMLObje
                 }
         }
-        // kdDebug() << "UMLPackage::addObject(" << pObject->getName() <<
-        //   "): id=" << id << ", auxid=" << pObject->getAuxId() <<
-        //   ", alreadyThere=" << alreadyThere << endl;
-        if (! alreadyThere)
+        if (alreadyThere) {
+                kdDebug() << "UMLPackage::addObject: " << pObject->getName()
+                          << " is already there" << endl;
+        } else {
                 m_objects.append( pObject );
+        }
 }
 






More information about the umbrello-devel mailing list