diff options
author | Jacek Antonelli | 2009-04-30 13:04:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-04-30 13:07:16 -0500 |
commit | ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch) | |
tree | 8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/lltoolbar.cpp | |
parent | Second Life viewer sources 1.22.11 (diff) | |
download | meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2 meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz |
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/newview/lltoolbar.cpp')
-rw-r--r-- | linden/indra/newview/lltoolbar.cpp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/linden/indra/newview/lltoolbar.cpp b/linden/indra/newview/lltoolbar.cpp index 8202191..33edb3e 100644 --- a/linden/indra/newview/lltoolbar.cpp +++ b/linden/indra/newview/lltoolbar.cpp | |||
@@ -18,7 +18,8 @@ | |||
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | 23 | * |
23 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
24 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -127,9 +128,6 @@ BOOL LLToolBar::postBuild() | |||
127 | childSetAction("appearance_btn", onClickAppearance, this); | 128 | childSetAction("appearance_btn", onClickAppearance, this); |
128 | childSetControlName("appearance_btn", ""); | 129 | childSetControlName("appearance_btn", ""); |
129 | 130 | ||
130 | childSetAction("clothing_btn", onClickClothing, this); | ||
131 | childSetControlName("clothing_btn", "ClothingBtnState"); | ||
132 | |||
133 | childSetAction("fly_btn", onClickFly, this); | 131 | childSetAction("fly_btn", onClickFly, this); |
134 | childSetControlName("fly_btn", "FlyBtnState"); | 132 | childSetControlName("fly_btn", "FlyBtnState"); |
135 | 133 | ||
@@ -286,8 +284,6 @@ void LLToolBar::refresh() | |||
286 | BOOL mouselook = gAgent.cameraMouselook(); | 284 | BOOL mouselook = gAgent.cameraMouselook(); |
287 | setVisible(show && !mouselook); | 285 | setVisible(show && !mouselook); |
288 | 286 | ||
289 | // Clothing button updated inside LLFloaterClothing | ||
290 | |||
291 | BOOL sitting = FALSE; | 287 | BOOL sitting = FALSE; |
292 | if (gAgent.getAvatarObject()) | 288 | if (gAgent.getAvatarObject()) |
293 | { | 289 | { |
@@ -307,7 +303,10 @@ void LLToolBar::refresh() | |||
307 | } | 303 | } |
308 | gSavedSettings.setBOOL("BuildBtnState", build_mode); | 304 | gSavedSettings.setBOOL("BuildBtnState", build_mode); |
309 | 305 | ||
310 | updateCommunicateList(); | 306 | if (isInVisibleChain()) |
307 | { | ||
308 | updateCommunicateList(); | ||
309 | } | ||
311 | } | 310 | } |
312 | 311 | ||
313 | void LLToolBar::updateCommunicateList() | 312 | void LLToolBar::updateCommunicateList() |
@@ -444,7 +443,7 @@ void LLToolBar::onClickChat(void* user_data) | |||
444 | // static | 443 | // static |
445 | void LLToolBar::onClickAppearance(void*) | 444 | void LLToolBar::onClickAppearance(void*) |
446 | { | 445 | { |
447 | if (gAgent.getWearablesLoaded()) | 446 | if (gAgent.areWearablesLoaded()) |
448 | { | 447 | { |
449 | gAgent.changeCameraToCustomizeAvatar(); | 448 | gAgent.changeCameraToCustomizeAvatar(); |
450 | } | 449 | } |
@@ -452,13 +451,6 @@ void LLToolBar::onClickAppearance(void*) | |||
452 | 451 | ||
453 | 452 | ||
454 | // static | 453 | // static |
455 | void LLToolBar::onClickClothing(void*) | ||
456 | { | ||
457 | handle_clothing(NULL); | ||
458 | } | ||
459 | |||
460 | |||
461 | // static | ||
462 | void LLToolBar::onClickFly(void*) | 454 | void LLToolBar::onClickFly(void*) |
463 | { | 455 | { |
464 | gAgent.toggleFlying(); | 456 | gAgent.toggleFlying(); |