From b737a577e5057fe85262073b4362ac53a26c6dbf Mon Sep 17 00:00:00 2001 From: Adeel Asghar Date: Mon, 21 Mar 2022 16:38:43 +0100 Subject: [PATCH] Do not allow to convert the system library (#8737) --- OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp b/OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp index 6b8b6e0bc4a..9df8f78ab5d 100644 --- a/OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp +++ b/OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp @@ -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); }