1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 19:45:31 +01:00

Append playlist id to new playlists.

This commit is contained in:
Andreas 2013-08-17 15:54:39 +02:00
parent 1254d025ab
commit 2c0b505b7b

View File

@ -147,6 +147,11 @@ void PlaylistManager::New(const QString& name, const SongList& songs,
playlist->InsertSongsOrLibraryItems(songs);
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) {