[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Sep 3 07:00:11 UTC 2006


SVN commit 580286 by okellogg:

activateViews(): Activate views in contained folders too.

 M  +7 -0      folder.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/folder.cpp #580285:580286
@@ -77,6 +77,13 @@
 }
 
 void UMLFolder::activateViews() {
+    UMLObject *o;
+    for (UMLObjectListIt oit(m_objects); (o = oit.current()) != NULL; ++oit) {
+        if (o->getBaseType() == Uml::ot_Folder) {
+            UMLFolder *f = static_cast<UMLFolder*>(o);
+            f->activateViews();
+        }
+    }
     UMLView *v;
     for (UMLViewListIt vit(m_diagrams); (v = vit.current()) != NULL; ++vit)
         v->activateAfterLoad();




More information about the umbrello-devel mailing list