Skip to content

Commit

Permalink
Update class text when duplicating another class in it.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Feb 25, 2016
1 parent d6904af commit 1db86bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Modeling/ModelicaClassDialog.cpp
Expand Up @@ -810,8 +810,8 @@ void DuplicateClassDialog::duplicateClass()
pLibraryTreeItem = pLibraryTreeModel->createLibraryTreeItem(mpNameTextBox->text().trimmed(), pParentLibraryTreeItem, false, false, true);
pLibraryTreeItem->setSaveContentsType(mpLibraryTreeItem->getSaveContentsType());
pLibraryTreeModel->checkIfAnyNonExistingClassLoaded();
pLibraryTreeModel->updateLibraryTreeItemClassText(pLibraryTreeItem);
if (mSaveAs) {
pLibraryTreeModel->updateLibraryTreeItemClassText(pLibraryTreeItem);
mpMainWindow->getLibraryWidget()->saveLibraryTreeItem(pLibraryTreeItem);
}
}
Expand Down

0 comments on commit 1db86bd

Please sign in to comment.