Skip to content

Commit

Permalink
ticket:4319 Call the icon update inside loadDiagramView.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 15, 2017
1 parent 552bf53 commit fbe98a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -2732,6 +2732,10 @@ void ModelWidget::loadDiagramView()
drawModelInheritedClassComponents(this, StringHandler::Diagram);
drawModelDiagramComponents();
mDiagramViewLoaded = true;
/*! @note The following is not needed if we load the connectors alongwith the icon/diagram annotation.
* We have disabled loading the connectors so user gets fast browsing of libraries.
*/
mpLibraryTreeItem->handleIconUpdated();
}
}

Expand Down Expand Up @@ -4782,10 +4786,6 @@ void ModelWidgetContainer::addModelWidget(ModelWidget *pModelWidget, bool checkP
pModelWidget->setWindowState(Qt::WindowMaximized);
}
setActiveSubWindow(pSubWindow);
/*! @note The following is not needed if we load the connectors alongwith the icon/diagram annotation.
* We have disabled loading the connectors so user gets fast browsing of libraries.
*/
pModelWidget->getLibraryTreeItem()->handleIconUpdated();
}
if (pModelWidget->getLibraryTreeItem()->getLibraryType() == LibraryTreeItem::Text) {
pModelWidget->getTextViewToolButton()->setChecked(true);
Expand Down

0 comments on commit fbe98a6

Please sign in to comment.