Skip to content

Commit

Permalink
#3362 - Use delete for nested classes instead of unload.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Jun 26, 2015
1 parent a9b0514 commit e3397c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -1622,6 +1622,13 @@ void LibraryTreeWidget::showContextMenu(QPoint point)
if (!((StringHandler::getFirstWordBeforeDot(pLibraryTreeNode->getNameStructure()).compare("OpenModelica") == 0) || isSearchedTree())) {
menu.addSeparator();
menu.addAction(mpDuplicateClassAction);
if (pLibraryTreeNode->getParentName().isEmpty()) {
mpUnloadClassAction->setText(Helper::unloadClass);
mpUnloadClassAction->setStatusTip(Helper::unloadClassTip);
} else {
mpUnloadClassAction->setText(Helper::deleteStr);
mpUnloadClassAction->setStatusTip(tr("Deletes the Modelica class"));
}
menu.addAction(mpUnloadClassAction);
/* Only used for development testing. */
/*menu.addAction(mpRefreshAction);*/
Expand Down

0 comments on commit e3397c8

Please sign in to comment.