diff options
author | Merov Linden <merov@lindenlab.com> | 2010-10-25 10:27:37 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2010-10-25 10:27:37 -0700 |
commit | c0e9594e9d509ba665c3b5a2fe01049b0dbb92fd (patch) | |
tree | 7952b2fa26391e5cd702d663735b5b875e095f27 | |
parent | 6f4a21531ae7e5d095034f7315501421dd94d124 (diff) |
STORM-173 : use isEmpty() instead of getFirstRootNode() to check selection
-rw-r--r-- | indra/newview/llviewermenu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index dc7c6f17a9..68935d536b 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -4160,8 +4160,7 @@ class LLObjectEnableReturn : public view_listener_t { bool handleEvent(const LLSD& userdata) { - LLSelectNode* node = LLSelectMgr::getInstance()->getSelection()->getFirstRootNode(); - if (!node) + if (LLSelectMgr::getInstance()->getSelection()->isEmpty()) { // Do not enable if nothing selected return false; |