[Summary] Made master bus shown and placed as the first item

This commit is contained in:
GZharun 2014-08-05 17:26:09 +03:00
parent ff374f7a43
commit c40b8bc1a3

View file

@ -520,7 +520,6 @@ EditorRoutes::redisplay ()
if (_editor->master_bus_ui ()) {
_editor->master_bus_ui ()->set_route (route);
}
continue;
}
bool visible = tv->marked_for_display ();
@ -905,7 +904,7 @@ EditorRoutes::sync_order_keys_from_treeview ()
TreeModel::Children::iterator ri;
bool changed = false;
bool rid_change = false;
uint32_t order = 0;
uint32_t order = 1;
uint32_t rid = 1;
uint32_t invisible_key = UINT32_MAX;
@ -913,12 +912,17 @@ EditorRoutes::sync_order_keys_from_treeview ()
boost::shared_ptr<Route> route = (*ri)[_columns.route];
bool visible = (*ri)[_columns.visible];
uint32_t old_key = route->order_key ();
if (order != old_key) {
route->set_order_key (order);
if (route->is_master() ) {
route->set_order_key (0);
} else {
route->set_order_key (order);
}
changed = true;
}