diff options
author | Jacek Antonelli | 2009-01-11 16:10:10 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-01-11 16:10:15 -0600 |
commit | 6156baad67c744ed03ea47798bfeb8a77698efc6 (patch) | |
tree | 872d35ff6df740462d8cb574d03f746dfd5dd1ae /linden/indra/newview/llviewermenufile.cpp | |
parent | Second Life viewer sources 1.22.3-RC (diff) | |
download | meta-impy-6156baad67c744ed03ea47798bfeb8a77698efc6.zip meta-impy-6156baad67c744ed03ea47798bfeb8a77698efc6.tar.gz meta-impy-6156baad67c744ed03ea47798bfeb8a77698efc6.tar.bz2 meta-impy-6156baad67c744ed03ea47798bfeb8a77698efc6.tar.xz |
Second Life viewer sources 1.22.4-RC
Diffstat (limited to 'linden/indra/newview/llviewermenufile.cpp')
-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; |