mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05: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,10 +1351,13 @@ 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.
|
||||
|
|
Loading…
Reference in a new issue