STORM-173 : use isEmpty() instead of getFirstRootNode() to check selection

meow-7.2.2
Merov Linden 2010-10-25 10:27:37 -07:00
parent 6f4a21531a
commit c0e9594e9d
1 changed files with 1 additions and 2 deletions

View File

@ -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;