STORM-173 : use isEmpty() instead of getFirstRootNode() to check selection
parent
6f4a21531a
commit
c0e9594e9d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue