summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_routes.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-01-18 05:14:48 +0100
committerRobin Gareus <robin@gareus.org>2017-01-18 05:14:48 +0100
commit48da03e301c8145f9568df0692001652ea31b796 (patch)
treef446ec5094a42ccb437ca8ab18193d4df7eba8a0 /gtk2_ardour/editor_routes.cc
parente8a4fe49b930c222d7c20ae1b36008e0b4e3a575 (diff)
push sorted Stripable order back to PI (for control surfaces)
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r--gtk2_ardour/editor_routes.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc
index 5c32330139..fe1e5af62b 100644
--- a/gtk2_ardour/editor_routes.cc
+++ b/gtk2_ardour/editor_routes.cc
@@ -1079,6 +1079,14 @@ EditorRoutes::sync_presentation_info_from_treeview ()
change = true;
}
}
+ if (change) {
+ n = 0;
+ for (OrderingKeys::iterator sr = sorted.begin(); sr != sorted.end(); ++sr, ++n) {
+ if (sr->stripable->presentation_info().order() != n) {
+ sr->stripable->set_presentation_order (n, false);
+ }
+ }
+ }
}
if (change) {