1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 20:45:46 +08:00

Fix wrong beatmap selection in song-select menu on deleting selected beatmap

This commit is contained in:
EVAST9919 2017-10-11 20:25:12 +03:00
parent 6a91175c0f
commit 7cff413ab0

View File

@ -375,6 +375,9 @@ namespace osu.Game.Screens.Select
if (group == null)
return;
if (selectedGroup == group)
SelectNext();
groups.Remove(group);
panels.Remove(group.Header);
foreach (var p in group.BeatmapPanels)
@ -383,9 +386,6 @@ namespace osu.Game.Screens.Select
scrollableContent.Remove(group.Header);
scrollableContent.RemoveRange(group.BeatmapPanels);
if (selectedGroup == group)
SelectNext();
computeYPositions();
}