Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bt_editor/sidepanel_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ void SidepanelEditor::onContextMenu(const QPoint& pos)
return;
}

// Loop through the category items and prevent the right click
// menu from showing for any of the items
for (const auto& it : _tree_view_category_items)
{
const auto category_item = it.second;
if( category_item == selected_item ) {
return;
}
}

QMenu menu(this);

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