Skip to content

Commit

Permalink
Materials: Disable editor right click menu
Browse files Browse the repository at this point in the history
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 FreeCAD#17110
  • Loading branch information
davesrocketshop authored and yorikvanhavre committed Nov 4, 2024
1 parent 144645d commit 1430680
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Material/Gui/MaterialsEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1430680

Please sign in to comment.