French translation update
[ardour.git] / gtk2_ardour / editor_routes.cc
index 2754ba3dd85e3e579b9d5e857b05baa0cc903721..075242459ede71396019b392a49fadb0c4df08f5 100644 (file)
@@ -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()) {
@@ -1062,6 +1067,7 @@ EditorRoutes::sync_presentation_info_from_treeview ()
        if (change) {
                DEBUG_TRACE (DEBUG::OrderKeys, "... notify PI change from editor GUI\n");
                _session->notify_presentation_info_change ();
+               _session->set_dirty();
        }
 }