aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llpanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llpanel.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/llui/llpanel.cpp b/linden/indra/llui/llpanel.cpp
index 7430e50..b72e104 100644
--- a/linden/indra/llui/llpanel.cpp
+++ b/linden/indra/llui/llpanel.cpp
@@ -214,6 +214,17 @@ void LLPanel::draw()
214 } 214 }
215 } 215 }
216 216
217 updateDefaultBtn();
218
219 LLView::draw();
220}
221
222void LLPanel::updateDefaultBtn()
223{
224 // This method does not call LLView::draw() so callers will need
225 // to take care of that themselves at the appropriate place in
226 // their rendering sequence
227
217 if( mDefaultBtn) 228 if( mDefaultBtn)
218 { 229 {
219 if (gFocusMgr.childHasKeyboardFocus( this ) && mDefaultBtn->getEnabled()) 230 if (gFocusMgr.childHasKeyboardFocus( this ) && mDefaultBtn->getEnabled())
@@ -228,8 +239,6 @@ void LLPanel::draw()
228 mDefaultBtn->setBorderEnabled(FALSE); 239 mDefaultBtn->setBorderEnabled(FALSE);
229 } 240 }
230 } 241 }
231
232 LLView::draw();
233} 242}
234 243
235void LLPanel::refresh() 244void LLPanel::refresh()