f
This commit is contained in:
@@ -2182,34 +2182,34 @@ void LLFloaterView::closeAllChildren(bool app_quitting)
|
||||
floaterp->close(app_quitting);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// <edit>
|
||||
void LLFloaterView::minimizeAllChildren()
|
||||
{
|
||||
// iterate over a copy of the list, because closing windows will destroy
|
||||
// some windows on the list.
|
||||
child_list_t child_list = *(getChildList());
|
||||
|
||||
for (child_list_const_iter_t it = child_list.begin(); it != child_list.end(); ++it)
|
||||
{
|
||||
LLView* viewp = *it;
|
||||
child_list_const_iter_t exists = std::find(getChildList()->begin(), getChildList()->end(), viewp);
|
||||
if (exists == getChildList()->end())
|
||||
{
|
||||
// this floater has already been removed
|
||||
continue;
|
||||
}
|
||||
|
||||
LLFloater* floaterp = (LLFloater*)viewp;
|
||||
|
||||
if (!floaterp->isDead())
|
||||
{
|
||||
floaterp->setMinimized(TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
// </edit>
|
||||
}
|
||||
|
||||
// <edit>
|
||||
void LLFloaterView::minimizeAllChildren()
|
||||
{
|
||||
// iterate over a copy of the list, because closing windows will destroy
|
||||
// some windows on the list.
|
||||
child_list_t child_list = *(getChildList());
|
||||
|
||||
for (child_list_const_iter_t it = child_list.begin(); it != child_list.end(); ++it)
|
||||
{
|
||||
LLView* viewp = *it;
|
||||
child_list_const_iter_t exists = std::find(getChildList()->begin(), getChildList()->end(), viewp);
|
||||
if (exists == getChildList()->end())
|
||||
{
|
||||
// this floater has already been removed
|
||||
continue;
|
||||
}
|
||||
|
||||
LLFloater* floaterp = (LLFloater*)viewp;
|
||||
|
||||
if (!floaterp->isDead())
|
||||
{
|
||||
floaterp->setMinimized(TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
// </edit>
|
||||
|
||||
BOOL LLFloaterView::allChildrenClosed()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user