Fixing file deletion when present in "My Collections" bundle

This commit is contained in:
pjft 2017-11-07 23:24:51 +00:00
parent ef8157a896
commit 4d237cea5e

View file

@ -304,7 +304,8 @@ void CollectionSystemManager::deleteCollectionFiles(FileData* file)
if (found) { if (found) {
sysDataIt->second.needsSave = true; sysDataIt->second.needsSave = true;
FileData* collectionEntry = children.at(key); FileData* collectionEntry = children.at(key);
ViewController::get()->getGameListView(sysDataIt->second.system).get()->remove(collectionEntry, false); SystemData* systemViewToUpdate = getSystemToView(sysDataIt->second.system);
ViewController::get()->getGameListView(systemViewToUpdate).get()->remove(collectionEntry, false);
} }
} }
} }