mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Don't de-select tracks when order changes
This commit is contained in:
parent
8fa60eaf05
commit
af2ee3c856
1 changed files with 6 additions and 3 deletions
|
|
@ -1005,9 +1005,11 @@ Editor::presentation_info_changed (PropertyChange const & what_changed)
|
||||||
* here, as a single handler.
|
* here, as a single handler.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for (TrackViewList::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
|
if (what_changed.contains (Properties::selected)) {
|
||||||
(*i)->set_selected (false);
|
for (TrackViewList::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
|
||||||
(*i)->hide_selection ();
|
(*i)->set_selected (false);
|
||||||
|
(*i)->hide_selection ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* STEP 1: set the GUI selection state (in which TimeAxisViews for the
|
/* STEP 1: set the GUI selection state (in which TimeAxisViews for the
|
||||||
|
|
@ -1048,6 +1050,7 @@ Editor::presentation_info_changed (PropertyChange const & what_changed)
|
||||||
TimeAxisView* tav = dynamic_cast<TimeAxisView*> (av);
|
TimeAxisView* tav = dynamic_cast<TimeAxisView*> (av);
|
||||||
|
|
||||||
if (!tav) {
|
if (!tav) {
|
||||||
|
assert (0);
|
||||||
continue; /* impossible */
|
continue; /* impossible */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue