summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-17 15:49:01 +0200
committerRobin Gareus <robin@gareus.org>2017-06-17 16:14:28 +0200
commitaf2ee3c8564c7d60cadb130b8c7ad1f4cddd2216 (patch)
tree908fc63a521eba9d8c074ebf7aef7a50fd464de3 /gtk2_ardour/editor_selection.cc
parent8fa60eaf054204bd3e0f824d222b8768d5a04ff8 (diff)
Don't de-select tracks when order changes
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index 087fcf74e0..2eb0279f46 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -1005,9 +1005,11 @@ Editor::presentation_info_changed (PropertyChange const & what_changed)
* here, as a single handler.
*/
- for (TrackViewList::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
- (*i)->set_selected (false);
- (*i)->hide_selection ();
+ if (what_changed.contains (Properties::selected)) {
+ for (TrackViewList::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
+ (*i)->set_selected (false);
+ (*i)->hide_selection ();
+ }
}
/* 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);
if (!tav) {
+ assert (0);
continue; /* impossible */
}