summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-08-22 19:34:28 -0700
committerRichard Linden <none@none>2012-08-22 19:34:28 -0700
commitcf498ad1dec06221f0843097ef4b4b1161d9826c (patch)
tree83247335b892e50852b6033982f2a17f09396710 /indra/newview
parentf93b94daa978e1bcf1897e0459fa8700f58d62d1 (diff)
MAINT-1416 FIXED Close Mini-map floater after Ctrl-W if it's opened and other floaters are not in focus
changed fix to always close front most closable floater whether or not it has focus to eliminate special case for mini map
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermenufile.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp
index 21a323941d..be78603e2d 100644
--- a/indra/newview/llviewermenufile.cpp
+++ b/indra/newview/llviewermenufile.cpp
@@ -476,8 +476,8 @@ class LLFileEnableCloseWindow : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
{
- bool new_value = NULL != LLFloater::getClosableFloaterFromFocus();
- return new_value || LLFloaterMap::getInstance()->isInVisibleChain();
+ bool new_value = NULL != gFloaterView->getFrontmostClosableFloater();
+ return new_value;
}
};
@@ -485,12 +485,7 @@ class LLFileCloseWindow : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
{
- bool new_value = (NULL == LLFloater::getClosableFloaterFromFocus());
- if(new_value && LLFloaterMap::getInstance()->isInVisibleChain())
- {
- LLFloaterMap::getInstance()->closeFloater(false);
- }
- LLFloater::closeFocusedFloater();
+ LLFloater::closeFrontmostFloater();
return true;
}
};