diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenufile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermenufile.cpp b/linden/indra/newview/llviewermenufile.cpp index bb84f43..33effdc 100644 --- a/linden/indra/newview/llviewermenufile.cpp +++ b/linden/indra/newview/llviewermenufile.cpp | |||
@@ -349,7 +349,8 @@ class LLFileEnableCloseWindow : public view_listener_t | |||
349 | { | 349 | { |
350 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 350 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
351 | { | 351 | { |
352 | bool new_value = gFloaterView->getFocusedFloater() != NULL || gSnapshotFloaterView->getFocusedFloater() != NULL; | 352 | bool new_value = NULL != LLFloater::getClosableFloaterFromFocus(); |
353 | |||
353 | // horrendously opaque, this code | 354 | // horrendously opaque, this code |
354 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 355 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
355 | return true; | 356 | return true; |