diff options
author | simon <none@none> | 2014-02-18 16:41:21 -0800 |
---|---|---|
committer | simon <none@none> | 2014-02-18 16:41:21 -0800 |
commit | 52ce788d0cf77361dc337edaf136f401acd0d4a9 (patch) | |
tree | 10b483a50bb1f3d897ece66d118036201bd74af7 /indra/newview/llviewermenufile.cpp | |
parent | 54ab932884c386950f4f31b9ee63446053c03d59 (diff) | |
parent | a347267cf1c55a3bd57d30117b8aa834623e1d61 (diff) |
Pull in viewer-lion to lock down next release
Diffstat (limited to 'indra/newview/llviewermenufile.cpp')
-rwxr-xr-x | indra/newview/llviewermenufile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp index be78603e2d..4c95dcd6a2 100755 --- a/indra/newview/llviewermenufile.cpp +++ b/indra/newview/llviewermenufile.cpp @@ -494,7 +494,9 @@ class LLFileEnableCloseAllWindows : public view_listener_t { bool handleEvent(const LLSD& userdata) { - bool open_children = gFloaterView->allChildrenClosed() && !LLFloaterSnapshot::getInstance()->isInVisibleChain(); + LLFloaterSnapshot* floater_snapshot = LLFloaterSnapshot::findInstance(); + bool is_floater_snapshot_opened = floater_snapshot && floater_snapshot->isInVisibleChain(); + bool open_children = gFloaterView->allChildrenClosed() && !is_floater_snapshot_opened; return !open_children; } }; |