From 14306801417fac60960b346bdef5a70d82bdab6e Mon Sep 17 00:00:00 2001 From: David Carter Date: Thu, 31 Oct 2024 20:25:42 -0400 Subject: [PATCH] Materials: Disable editor right click menu The right click context menu in the materials editor was implemented as a place holder but is currently non-functional. It should be disabled for 1.0. This will be revisited post 1.0 as all editor functionality is reviewed and improved. Fixes #17110 --- src/Mod/Material/Gui/MaterialsEditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Material/Gui/MaterialsEditor.cpp b/src/Mod/Material/Gui/MaterialsEditor.cpp index dd0d3da8c5..731b11d48e 100644 --- a/src/Mod/Material/Gui/MaterialsEditor.cpp +++ b/src/Mod/Material/Gui/MaterialsEditor.cpp @@ -161,11 +161,14 @@ void MaterialsEditor::setup() &MaterialsEditor::onSelectMaterial); connect(ui->treeMaterials, &QTreeView::doubleClicked, this, &MaterialsEditor::onDoubleClick); + // Disabled for now. This will be revisited post 1.0 +#if 0 ui->treeMaterials->setContextMenuPolicy(Qt::CustomContextMenu); connect(ui->treeMaterials, &QWidget::customContextMenuRequested, this, &MaterialsEditor::onContextMenu); +#endif } void MaterialsEditor::getFavorites()