summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2010-10-25 10:27:37 -0700
committerMerov Linden <merov@lindenlab.com>2010-10-25 10:27:37 -0700
commitc0e9594e9d509ba665c3b5a2fe01049b0dbb92fd (patch)
tree7952b2fa26391e5cd702d663735b5b875e095f27
parent6f4a21531ae7e5d095034f7315501421dd94d124 (diff)
STORM-173 : use isEmpty() instead of getFirstRootNode() to check selection
-rw-r--r--indra/newview/llviewermenu.cpp3
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;