fixed incorrect restore of mixer strip visibility

git-svn-id: svn://localhost/ardour2/trunk@1501 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2007-02-23 16:49:39 +00:00
parent 957d2e39c4
commit 6f3d9704cf
2 changed files with 6 additions and 5 deletions

View File

@@ -389,8 +389,7 @@ MixerStrip::set_stuff_from_route ()
} else {
_marked_for_display = true;
}
}
else {
} else {
/* backwards compatibility */
_marked_for_display = true;
}

View File

@@ -279,7 +279,7 @@ Mixer_UI::add_strip (Session::RouteList& routes)
TreeModel::Row row = *(track_model->append());
row[track_columns.text] = route->name();
row[track_columns.visible] = true;
row[track_columns.visible] = strip->marked_for_display();
row[track_columns.route] = route;
row[track_columns.strip] = strip;
@@ -614,8 +614,10 @@ Mixer_UI::redisplay_track_list ()
if (strip->route()->master() || strip->route()->control()) {
/* do nothing, these cannot be hidden */
} else {
strip_packer.remove (*strip);
strip->set_packed (false);
if (strip->packed()) {
strip_packer.remove (*strip);
strip->set_packed (false);
}
}
}
}