Skip to content
Snippets Groups Projects
Commit dd5aa8f6 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-18153 Fixed bring to front multiple dialog handling

parent 3248eb87
No related branches found
No related tags found
No related merge requests found
......@@ -112,11 +112,13 @@ void LLModalDialog::onOpen(const LLSD& key)
setFocus(TRUE);
std::list<LLModalDialog*>::iterator iter = std::find(sModalStack.begin(), sModalStack.end(), this);
if (iter == sModalStack.end())
if (iter != sModalStack.end())
{
sModalStack.push_front(this);
// if already present, we want to move it to front.
sModalStack.erase(iter);
}
// else act like it is a 'bring to front'
sModalStack.push_front(this);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment