mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
fix range selection of mixer strips; shift+selecting a single strip would select from there til the end
This commit is contained in:
parent
e3e85a92db
commit
4ffdc99c5f
1 changed files with 8 additions and 3 deletions
|
|
@ -676,6 +676,7 @@ Mixer_UI::strip_button_release_event (GdkEventButton *ev, MixerStrip *strip)
|
||||||
|
|
||||||
vector<MixerStrip*> tmp;
|
vector<MixerStrip*> tmp;
|
||||||
bool accumulate = false;
|
bool accumulate = false;
|
||||||
|
bool found_another = false;
|
||||||
|
|
||||||
tmp.push_back (strip);
|
tmp.push_back (strip);
|
||||||
|
|
||||||
|
|
@ -694,6 +695,7 @@ Mixer_UI::strip_button_release_event (GdkEventButton *ev, MixerStrip *strip)
|
||||||
/* hit selected strip. if currently accumulating others,
|
/* hit selected strip. if currently accumulating others,
|
||||||
we're done. if not accumulating others, start doing so.
|
we're done. if not accumulating others, start doing so.
|
||||||
*/
|
*/
|
||||||
|
found_another = true;
|
||||||
if (accumulate) {
|
if (accumulate) {
|
||||||
/* done */
|
/* done */
|
||||||
break;
|
break;
|
||||||
|
|
@ -707,9 +709,12 @@ Mixer_UI::strip_button_release_event (GdkEventButton *ev, MixerStrip *strip)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (vector<MixerStrip*>::iterator i = tmp.begin(); i != tmp.end(); ++i) {
|
if (found_another) {
|
||||||
_selection.add (*i);
|
for (vector<MixerStrip*>::iterator i = tmp.begin(); i != tmp.end(); ++i) {
|
||||||
}
|
_selection.add (*i);
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
_selection.set (strip); //user wants to start a range selection, but there aren't any others selected yet
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue