fix: Crash when closing some popups
This commit is contained in:
parent
13a3942f8f
commit
a33c7135d1
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user