mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
[Summary] Made master bus shown and placed as the first item
This commit is contained in:
parent
ff374f7a43
commit
c40b8bc1a3
1 changed files with 9 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue