1
0
mirror of synced 2025-01-18 09:04:52 +01:00

fix: Crash when closing some popups

This commit is contained in:
WerWolv 2023-05-01 14:15:00 +02:00
parent 13a3942f8f
commit a33c7135d1

View File

@ -585,7 +585,8 @@ namespace hex {
log::debug("Closing popup '{}'", name);
positionSet = sizeSet = false;
popups.erase(std::find(popups.begin(), popups.end(), currPopup));
if (auto it = std::find(popups.begin(), popups.end(), currPopup); it != popups.end())
popups.erase(it);
}
}
}