Merge remote-tracking branch 'upstream/master' into import-from-stable

This commit is contained in:
Dean Herbert
2017-07-31 17:31:10 +09:00
13 changed files with 73 additions and 50 deletions

View File

@ -89,7 +89,11 @@ namespace osu.Game.Beatmaps
/// <param name="beatmapSet">The beatmap to add.</param>
public void Add(BeatmapSetInfo beatmapSet)
{
Connection.InsertOrReplaceWithChildren(beatmapSet, true);
Connection.RunInTransaction(() =>
{
Connection.InsertOrReplaceWithChildren(beatmapSet, true);
});
BeatmapSetAdded?.Invoke(beatmapSet);
}