Add safe deletion support.

This commit is contained in:
Dean Herbert
2017-02-24 17:08:13 +09:00
parent 6c3bda18b6
commit 958bf54c31
3 changed files with 31 additions and 5 deletions

View File

@ -377,7 +377,7 @@ namespace osu.Game.Screens.Select
private void addBeatmapSets(Framework.Game game, CancellationToken token)
{
foreach (var beatmapSet in database.Query<BeatmapSetInfo>())
foreach (var beatmapSet in database.Query<BeatmapSetInfo>().Where(b => !b.DeletePending))
{
if (token.IsCancellationRequested) return;
addBeatmapSet(beatmapSet, game);