Playlist UI tweaks: renaming a plist should apply to all plists created in that group
This commit is contained in:
parent
60dbf3bcec
commit
70529c0b56
|
@ -2706,9 +2706,15 @@ RouteUI::rename_current_playlist ()
|
||||||
prompter.set_prompt (_("That name is already in use. Use this instead?"));
|
prompter.set_prompt (_("That name is already in use. Use this instead?"));
|
||||||
prompter.set_initial_text (Playlist::bump_name (name, *_session));
|
prompter.set_initial_text (Playlist::bump_name (name, *_session));
|
||||||
} else {
|
} else {
|
||||||
pl->set_name (name);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name.length()) {
|
||||||
|
vector<boost::shared_ptr<Playlist> > playlists_gr = _session->playlists()->playlists_for_pgroup (pl->pgroup_id());
|
||||||
|
for (vector<boost::shared_ptr<Playlist> >::iterator i = playlists_gr.begin(); i != playlists_gr.end(); ++i) {
|
||||||
|
(*i)->set_name (name);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user