Skip to content

Commit

Permalink
Ensure non-selectable items can't be selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Feb 19, 2025
1 parent 757ecc8 commit c0b2ae5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/instrumentsscene/view/layoutpaneltreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,9 @@ void LayoutPanelTreeModel::setItemsSelected(const QModelIndexList& indexes, bool
{
for (const QModelIndex& index : indexes) {
if (AbstractLayoutPanelTreeItem* item = modelIndexToItem(index)) {
if (!item->isSelectable()) {
continue;
}
item->setIsSelected(selected);
}
}
Expand Down

0 comments on commit c0b2ae5

Please sign in to comment.