Skip to content

Commit 3b28f5f

Browse files
fix crash related to deleting playlists
1 parent 2f25889 commit 3b28f5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SongManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ void SongManager::DeletePlaylist(const string& pl) {
382382
// stuff gets weird if all playlists have been deleted and a chart is added - mina
383383
if(allplaylists.size() > 0)
384384
activeplaylist = allplaylists.begin()->first;
385+
386+
// clear out the entry for the music wheel as well or it'll crash -mina
387+
groupderps.erase(pl);
385388
}
386389

387390
void SongManager::MakePlaylistFromFavorites(set<string>& favs) {

0 commit comments

Comments
 (0)