Append playlist id to new playlists.
This commit is contained in:
parent
1254d025ab
commit
2c0b505b7b
@ -147,6 +147,11 @@ void PlaylistManager::New(const QString& name, const SongList& songs,
|
|||||||
playlist->InsertSongsOrLibraryItems(songs);
|
playlist->InsertSongsOrLibraryItems(songs);
|
||||||
|
|
||||||
SetCurrentPlaylist(id);
|
SetCurrentPlaylist(id);
|
||||||
|
|
||||||
|
// If the name is just "Playlist", append the id
|
||||||
|
if (name == tr("Playlist")) {
|
||||||
|
Rename(id, QString("%1 %2").arg(name).arg(id));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlaylistManager::Load(const QString& filename) {
|
void PlaylistManager::Load(const QString& filename) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user