forked from qt-creator/qt-creator
ProjectExplorer: Remove "Add Library" from context menu
"Add Library" is only available if the project is a qmake project. This patch removes it in case its not a qmake project. Change-Id: I1f37139584fed3bfb784b7b54b4693f2f3d526dd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -489,7 +489,7 @@ void QmakeProjectManagerPluginPrivate::updateContextActions(Node *node)
|
||||
const ContainerNode *containerNode = node ? node->asContainerNode() : nullptr;
|
||||
const auto *proFileNode = dynamic_cast<const QmakeProFileNode *>(containerNode ? containerNode->rootProjectNode() : node);
|
||||
|
||||
m_addLibraryActionContextMenu->setEnabled(proFileNode);
|
||||
m_addLibraryActionContextMenu->setVisible(proFileNode);
|
||||
auto *qmakeProject = qobject_cast<QmakeProject *>(project);
|
||||
QmakeProFileNode *subProjectNode = nullptr;
|
||||
disableBuildFileMenus();
|
||||
|
Reference in New Issue
Block a user