Skip to content

Commit d853cd0

Browse files
authored
proposed fix for #87 (#88)
1 parent da5364c commit d853cd0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bt_editor/sidepanel_editor.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,16 @@ void SidepanelEditor::onContextMenu(const QPoint& pos)
190190
return;
191191
}
192192

193+
// Loop through the category items and prevent the right click
194+
// menu from showing for any of the items
195+
for (const auto& it : _tree_view_category_items)
196+
{
197+
const auto category_item = it.second;
198+
if( category_item == selected_item ) {
199+
return;
200+
}
201+
}
202+
193203
QMenu menu(this);
194204

195205
QAction* edit = menu.addAction("Edit");

0 commit comments

Comments
 (0)