Skip to content

Commit

Permalink
Set the ModelWidget before setting the class text
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 29, 2019
1 parent 888930a commit 0bc9db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -4225,8 +4225,8 @@ bool ModelWidget::modelicaEditorTextChanged(LibraryTreeItem **pLibraryTreeItem)
pLibraryTreeView->selectionModel()->clearSelection();
pLibraryTreeView->selectionModel()->select(proxyIndex, QItemSelectionModel::Select);
// update class text
pNewLibraryTreeItem->setClassText(modelicaText);
pNewLibraryTreeItem->setModelWidget(this);
pNewLibraryTreeItem->setClassText(modelicaText);
setLibraryTreeItem(pNewLibraryTreeItem);
setModelFilePathLabel(pNewLibraryTreeItem->getFileName());
reDrawModelWidget();
Expand Down

0 comments on commit 0bc9db2

Please sign in to comment.