Skip to content

Commit

Permalink
imp board: don't start routing tracks if tracks aren't selectable
Browse files Browse the repository at this point in the history
changelog: Bugfixes/Board Editor: don't start routing tracks by dragging if tracks aren't selectable
  • Loading branch information
carrotIndustries committed Nov 9, 2022
1 parent c2962c4 commit 29b5623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/imp/imp_board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,10 @@ void ImpBoard::handle_maybe_drag(bool ctrl)
ImpBase::handle_maybe_drag(ctrl);
return;
}
if (!canvas->selection_filter.can_select(SelectableRef(UUID(), ObjectType::TRACK, 0, target.layer))) {
ImpBase::handle_maybe_drag(ctrl);
return;
}
canvas->inhibit_drag_selection();
target_drag_begin = target;
cursor_pos_drag_begin = canvas->get_cursor_pos_win();
Expand Down

0 comments on commit 29b5623

Please sign in to comment.