mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Fix incorrect track ordering when creating a session from a template
(supplied order keys are correct). This really shouldn't be needed, but historically there have been races between the treeview and the editor order keys. Interesting to note that there have been no reported ordering bugs when loading sessions.
This commit is contained in:
parent
b72fc759c0
commit
bf72a02f74
1 changed files with 4 additions and 3 deletions
|
|
@ -636,7 +636,7 @@ void
|
|||
EditorRoutes::routes_added (list<RouteTimeAxisView*> routes)
|
||||
{
|
||||
PBD::Unwinder<bool> at (_adding_routes, true);
|
||||
|
||||
bool from_scratch = (_model->children().size() == 0);
|
||||
Gtk::TreeModel::Children::iterator insert_iter = _model->children().end();
|
||||
|
||||
for (Gtk::TreeModel::Children::iterator it = _model->children().begin(); it != _model->children().end(); ++it) {
|
||||
|
|
@ -716,8 +716,9 @@ EditorRoutes::routes_added (list<RouteTimeAxisView*> routes)
|
|||
_display.set_model (_model);
|
||||
|
||||
/* now update route order keys from the treeview/track display order */
|
||||
|
||||
sync_order_keys_from_treeview ();
|
||||
if (!from_scratch) {
|
||||
sync_order_keys_from_treeview ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue