mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed an issue where repeatedly enabling and disabling auto collections could crash the application
This commit is contained in:
parent
78a4223b8e
commit
c0a2f9f557
|
@ -1351,11 +1351,14 @@ void CollectionSystemsManager::removeCollectionsFromDisplayedSystems()
|
|||
// Remove all collection Systems.
|
||||
for (auto sysIt = SystemData::sSystemVector.cbegin();
|
||||
sysIt != SystemData::sSystemVector.cend();) {
|
||||
if ((*sysIt)->isCollection())
|
||||
if ((*sysIt)->isCollection()) {
|
||||
(*sysIt)->getRootFolder()->setUpdateListCallback(nullptr);
|
||||
sysIt = SystemData::sSystemVector.erase(sysIt);
|
||||
else
|
||||
}
|
||||
else {
|
||||
++sysIt;
|
||||
}
|
||||
}
|
||||
|
||||
// Remove all custom collections in bundle.
|
||||
// This should not delete the objects from memory!
|
||||
|
|
Loading…
Reference in a new issue