diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index b255883..7c556df 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -4188,9 +4188,17 @@ class LLToolsEnableUnlink : public view_listener_t | |||
4188 | { | 4188 | { |
4189 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4189 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4190 | { | 4190 | { |
4191 | bool new_value = LLSelectMgr::getInstance()->selectGetAllRootsValid() && | 4191 | bool new_value = false; |
4192 | if (LLSelectMgr::getInstance()->selectGetAllRootsValid() && | ||
4192 | LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject() && | 4193 | LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject() && |
4193 | !LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject()->isAttachment(); | 4194 | !LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject()->isAttachment()) |
4195 | { | ||
4196 | if (LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() != | ||
4197 | LLSelectMgr::getInstance()->getSelection()->getObjectCount()) | ||
4198 | { | ||
4199 | new_value = true; | ||
4200 | } | ||
4201 | } | ||
4194 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 4202 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
4195 | return true; | 4203 | return true; |
4196 | } | 4204 | } |