summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_routes.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2016-11-06 21:59:33 -0800
committerLen Ovens <len@ovenwerks.net>2016-11-06 21:59:33 -0800
commit932cc4d347f988b1bc712749ff9ba1684d165bc7 (patch)
tree0a79162d0e09f6aaeb44ee85742fba74ad313611 /gtk2_ardour/editor_routes.cc
parent91c2527f5c347bc303575619821edad44c07dfa4 (diff)
One more piece to the moving master puzzle.
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r--gtk2_ardour/editor_routes.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc
index 2754ba3dd8..89732537f7 100644
--- a/gtk2_ardour/editor_routes.cc
+++ b/gtk2_ardour/editor_routes.cc
@@ -1042,12 +1042,17 @@ EditorRoutes::sync_presentation_info_from_treeview ()
* presentation order 1
*/
if ((count == 0) && master_is_first && (stripable->presentation_info().order() == 1)) {
- master_is_first = false;
+ master_is_first = false; // someone has moved master
order = 0;
}
- if (stripable->is_master() && (master_is_first == true)) {
- continue;
+ if (stripable->is_master() && master_is_first) {
+ if (count) {
+ continue;
+ } else {
+ count++;
+ continue;
+ }
}
if (order != stripable->presentation_info().order()) {