mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20: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,10 +1351,13 @@ void CollectionSystemsManager::removeCollectionsFromDisplayedSystems()
|
||||||
// Remove all collection Systems.
|
// Remove all collection Systems.
|
||||||
for (auto sysIt = SystemData::sSystemVector.cbegin();
|
for (auto sysIt = SystemData::sSystemVector.cbegin();
|
||||||
sysIt != SystemData::sSystemVector.cend();) {
|
sysIt != SystemData::sSystemVector.cend();) {
|
||||||
if ((*sysIt)->isCollection())
|
if ((*sysIt)->isCollection()) {
|
||||||
|
(*sysIt)->getRootFolder()->setUpdateListCallback(nullptr);
|
||||||
sysIt = SystemData::sSystemVector.erase(sysIt);
|
sysIt = SystemData::sSystemVector.erase(sysIt);
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
++sysIt;
|
++sysIt;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove all custom collections in bundle.
|
// Remove all custom collections in bundle.
|
||||||
|
|
Loading…
Reference in a new issue