Merge pull request #290 from pjft/collections-delete-fix

Fixing file deletion when present in "My Collections" bundle
This commit is contained in:
Jools Wills 2017-11-07 23:31:31 +00:00 committed by GitHub
commit 9a77c327d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,7 +304,8 @@ void CollectionSystemManager::deleteCollectionFiles(FileData* file)
if (found) {
sysDataIt->second.needsSave = true;
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);
}
}
}