diff options
author | McCabe Maxsted | 2009-06-11 04:51:48 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-11 04:51:48 -0700 |
commit | 8ed5f9b1621c71f21a89b63ede2f23949e3ed6a4 (patch) | |
tree | 834dbb130730196b50f78ae456a5265d83a30366 /linden | |
parent | Added Link/Unlink buttons to the Tools floater (diff) | |
download | meta-impy-8ed5f9b1621c71f21a89b63ede2f23949e3ed6a4.zip meta-impy-8ed5f9b1621c71f21a89b63ede2f23949e3ed6a4.tar.gz meta-impy-8ed5f9b1621c71f21a89b63ede2f23949e3ed6a4.tar.bz2 meta-impy-8ed5f9b1621c71f21a89b63ede2f23949e3ed6a4.tar.xz |
Fixed 'Unlink' not toggling in Tools menu
Diffstat (limited to 'linden')
-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 | } |