Skip to content

Commit

Permalink
Do not allow to convert the system library (#8737)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 21, 2022
1 parent 6b61a26 commit b737a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -3368,7 +3368,7 @@ void LibraryTreeView::showContextMenu(QPoint point)
exportMenu.addAction(mpExportXMLAction);
exportMenu.addAction(mpExportFigaroAction);
menu.addMenu(&exportMenu);
if (pLibraryTreeItem->isTopLevel()) {
if (pLibraryTreeItem->isTopLevel() && !pLibraryTreeItem->isSystemLibrary()) {
menu.addSeparator();
menu.addAction(mpConvertClassUsesLibrariesAction);
}
Expand Down

0 comments on commit b737a57

Please sign in to comment.