aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstatusbar.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:50 -0500
committerJacek Antonelli2008-08-15 23:45:50 -0500
commit2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch)
tree95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/llstatusbar.cpp
parentSecond Life viewer sources 1.20.6 (diff)
downloadmeta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz
Second Life viewer sources 1.20.7
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llstatusbar.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/linden/indra/newview/llstatusbar.cpp b/linden/indra/newview/llstatusbar.cpp
index c11d46d..42acdcc 100644
--- a/linden/indra/newview/llstatusbar.cpp
+++ b/linden/indra/newview/llstatusbar.cpp
@@ -429,26 +429,18 @@ void LLStatusBar::refresh()
429 childSetVisible("restrictpush", FALSE); 429 childSetVisible("restrictpush", FALSE);
430 } 430 }
431 431
432 BOOL voice_enabled = gVoiceClient->voiceEnabled();
433 BOOL have_voice = parcel && parcel->getVoiceEnabled(); 432 BOOL have_voice = parcel && parcel->getVoiceEnabled();
434 if (!voice_enabled) 433 if (have_voice)
435 { 434 {
436 childSetVisible("status_no_voice", FALSE); 435 childSetVisible("status_no_voice", FALSE);
437 } 436 }
438 else 437 else
439 { 438 {
440 if (have_voice) 439 childSetVisible("status_no_voice", TRUE);
441 { 440 childGetRect( "status_no_voice", buttonRect );
442 childSetVisible("status_no_voice", FALSE); 441 r.setOriginAndSize( x, y, buttonRect.getWidth(), buttonRect.getHeight());
443 } 442 childSetRect( "status_no_voice", r );
444 else if (!have_voice) 443 x += buttonRect.getWidth();
445 {
446 childSetVisible("status_no_voice", TRUE);
447 childGetRect( "status_no_voice", buttonRect );
448 r.setOriginAndSize( x, y, buttonRect.getWidth(), buttonRect.getHeight());
449 childSetRect( "status_no_voice", r );
450 x += buttonRect.getWidth();
451 }
452 } 444 }
453 445
454 BOOL canBuyLand = parcel 446 BOOL canBuyLand = parcel