aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llfloater.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:30 -0500
committerJacek Antonelli2008-08-15 23:45:30 -0500
commit6fa6022a3f6d5bf71d97a59ec89929575f2ffd11 (patch)
tree3d1f89612dab6f8a8089ccac8cfeb6372f6fad8c /linden/indra/llui/llfloater.cpp
parentSecond Life viewer sources 1.19.0.2 (diff)
downloadmeta-impy-6fa6022a3f6d5bf71d97a59ec89929575f2ffd11.zip
meta-impy-6fa6022a3f6d5bf71d97a59ec89929575f2ffd11.tar.gz
meta-impy-6fa6022a3f6d5bf71d97a59ec89929575f2ffd11.tar.bz2
meta-impy-6fa6022a3f6d5bf71d97a59ec89929575f2ffd11.tar.xz
Second Life viewer sources 1.19.0.3
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llfloater.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp
index 496b67f..6d86652 100644
--- a/linden/indra/llui/llfloater.cpp
+++ b/linden/indra/llui/llfloater.cpp
@@ -1434,21 +1434,7 @@ void LLFloater::draw()
1434 } 1434 }
1435 } 1435 }
1436 1436
1437 if( mDefaultBtn) 1437 LLPanel::updateDefaultBtn();
1438 {
1439 if (gFocusMgr.childHasKeyboardFocus( this ) && mDefaultBtn->getEnabled())
1440 {
1441 LLUICtrl* focus_ctrl = gFocusMgr.getKeyboardFocus();
1442 // is this button a direct descendent and not a nested widget (e.g. checkbox)?
1443 BOOL focus_is_child_button = focus_ctrl->getWidgetType() == WIDGET_TYPE_BUTTON && focus_ctrl->getParent() == this;
1444 // only enable default button when current focus is not a button
1445 mDefaultBtn->setBorderEnabled(!focus_is_child_button);
1446 }
1447 else
1448 {
1449 mDefaultBtn->setBorderEnabled(FALSE);
1450 }
1451 }
1452 1438
1453 // draw children 1439 // draw children
1454 LLView* focused_child = gFocusMgr.getKeyboardFocus(); 1440 LLView* focused_child = gFocusMgr.getKeyboardFocus();
@@ -1459,6 +1445,7 @@ void LLFloater::draw()
1459 focused_child->setVisible(FALSE); 1445 focused_child->setVisible(FALSE);
1460 } 1446 }
1461 1447
1448 // don't call LLPanel::draw() since we've implemented custom background rendering
1462 LLView::draw(); 1449 LLView::draw();
1463 1450
1464 if( mBgVisible ) 1451 if( mBgVisible )