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 | |
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
-rw-r--r-- | ChangeLog.txt | 5 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 00d8578..e33b240 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -5,6 +5,11 @@ | |||
5 | modified: linden/indra/newview/llfloatertools.cpp | 5 | modified: linden/indra/newview/llfloatertools.cpp |
6 | modified: linden/indra/newview/llfloatertools.h | 6 | modified: linden/indra/newview/llfloatertools.h |
7 | modified: linden/indra/newview/skins/default/xui/en-us/floater_tools.xml | 7 | modified: linden/indra/newview/skins/default/xui/en-us/floater_tools.xml |
8 | |||
9 | |||
10 | * Fixed 'Unlink' not toggling in Tools menu. | ||
11 | |||
12 | modified: linden/indra/newview/llviewermenu.cpp | ||
8 | 13 | ||
9 | 14 | ||
10 | 2009-06-10 McCabe Maxsted <hakushakukun@gmail.com> | 15 | 2009-06-10 McCabe Maxsted <hakushakukun@gmail.com> |
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 | } |