FIRE-24125: Better close the current floater last in case of unexpected results when closing it while still iterating over the list of floaters

meow-7.2.2
Ansariel 2021-11-29 14:30:42 +01:00
parent 09d55793ac
commit 0916f45254
1 changed files with 4 additions and 3 deletions

View File

@ -1996,10 +1996,11 @@ void LLFloater::onClickCloseBtn(bool app_quitting)
auto floaterlist = LLFloaterReg::getAllFloatersInGroup(this);
for (auto floater : floaterlist)
{
floater->closeFloater();
if (floater != this)
{
floater->closeFloater();
}
}
return;
}
// </FS:Ansariel>