mirror of https://github.com/ppy/osu
Actually delete all related database entries, not just the set.
This commit is contained in:
parent
0c2089ddd7
commit
4a4f1f4d82
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue