1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 12:02:48 +01:00

When creating a new GS playlist, insert the newly created playlist just above the subscribed playlists, instead of inserting it at the end (after the subscribed playlists)

This commit is contained in:
Arnaud Bienner 2011-11-28 00:22:19 +01:00
parent be4e70a9b1
commit a77f4b14d5

View File

@ -1055,7 +1055,8 @@ void GroovesharkService::NewPlaylistCreated(QNetworkReply* reply, const QString&
QStandardItem* new_playlist_item = CreatePlaylistItem(name, playlist_id);
PlaylistInfo playlist_info(playlist_id, name);
playlist_info.item_ = new_playlist_item;
root_->appendRow(new_playlist_item);
// Insert the newly created playlist just above the subscribed playlists
root_->insertRow(subscribed_playlists_divider_->row(), new_playlist_item);
playlists_.insert(playlist_id, playlist_info);
}