Actually delete all related database entries, not just the set.

This commit is contained in:
Dean Herbert 2017-02-27 18:26:51 +09:00
parent 0c2089ddd7
commit 4a4f1f4d82
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
1 changed files with 12 additions and 0 deletions

View File

@ -57,6 +57,18 @@ private void deletePending()
try
{
storage.Delete(b.Path);
GetChildren(b, true);
foreach (var i in b.Beatmaps)
{
if (i.Metadata != null) connection.Delete(i.Metadata);
if (i.BaseDifficulty != null) connection.Delete(i.BaseDifficulty);
connection.Delete(i);
}
if (b.Metadata != null) connection.Delete(b.Metadata);
connection.Delete(b);
}
catch (Exception e)