1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 12:07:23 +08:00

check removed beatmap being null, check promptdelete beatmap being default

This commit is contained in:
tgi74000 2017-07-24 10:25:33 +02:00
parent 5d30efc090
commit d0e99f0c95
2 changed files with 4 additions and 1 deletions

View File

@ -313,6 +313,9 @@ namespace osu.Game.Screens.Select
private void removeGroup(BeatmapGroup group)
{
if (group == null)
return;
groups.Remove(group);
panels.Remove(group.Header);
foreach (var p in group.BeatmapPanels)

View File

@ -384,7 +384,7 @@ namespace osu.Game.Screens.Select
private void promptDelete()
{
if (Beatmap != null)
if (Beatmap != null && !Beatmap.IsDefault)
dialogOverlay?.Push(new BeatmapDeleteDialog(Beatmap));
}