[Uml-devel] KDE/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Fri Dec 22 09:11:17 UTC 2006
SVN commit 615674 by okellogg:
sync with branches/KDE/3.5 (r615332)
M +2 -1 umldoc.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/umldoc.cpp #615673:615674
@@ -1125,7 +1125,7 @@
return m_root[Uml::mt_Logical];
}
UMLFolder *f = currentView->getFolder();
- while (f->getUMLPackage()) {
+ while (f) {
f = static_cast<UMLFolder*>(f->getUMLPackage());
}
return f;
@@ -1839,6 +1839,7 @@
void UMLDoc::removeAllViews() {
for (int i = 0; i < Uml::N_MODELTYPES; i++)
m_root[i]->removeAllViews();
+ UMLApp::app()->setCurrentView(NULL);
emit sigDiagramChanged(dt_Undefined);
UMLApp::app()->setDiagramMenuItemsState(false);
}
More information about the umbrello-devel
mailing list