mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
Fix another out-of-scope variable access (#4811).
git-svn-id: svn://localhost/ardour2/branches/3.0@11809 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8d300dae85
commit
3fa134e8ae
1 changed files with 6 additions and 4 deletions
|
|
@ -189,7 +189,8 @@ PlaylistSelector::show_for (RouteUI* ruix)
|
|||
_session->playlists->unassigned (unassigned);
|
||||
|
||||
TreeModel::Row row;
|
||||
TreeModel::Row* selected_row = 0;
|
||||
TreeModel::Row selected_row;
|
||||
bool have_selected = false;
|
||||
TreePath this_path;
|
||||
|
||||
row = *(model->append (others.children()));
|
||||
|
|
@ -205,11 +206,12 @@ PlaylistSelector::show_for (RouteUI* ruix)
|
|||
child_row[columns.playlist] = *p;
|
||||
|
||||
if (*p == this_track->playlist()) {
|
||||
selected_row = &child_row;
|
||||
selected_row = child_row;
|
||||
have_selected = true;
|
||||
}
|
||||
|
||||
if (selected_row != 0) {
|
||||
tree.get_selection()->select (*selected_row);
|
||||
if (have_selected) {
|
||||
tree.get_selection()->select (selected_row);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue