diff options
author | Richard Nelson <none@none> | 2010-03-02 14:21:58 -0800 |
---|---|---|
committer | Richard Nelson <none@none> | 2010-03-02 14:21:58 -0800 |
commit | 41a30a59fb1b6dea2d531333d0429632f1fef2fe (patch) | |
tree | 3ffb4b300541511aeb94f83b491384cb29f5f584 /indra/newview/llsplitbutton.cpp | |
parent | a16574b919b71a67f84ac075ed2c2b717d112d31 (diff) |
initial work changing topctrl to popup layer
Diffstat (limited to 'indra/newview/llsplitbutton.cpp')
-rw-r--r-- | indra/newview/llsplitbutton.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/newview/llsplitbutton.cpp b/indra/newview/llsplitbutton.cpp index ffd9bc7624..e5323db466 100644 --- a/indra/newview/llsplitbutton.cpp +++ b/indra/newview/llsplitbutton.cpp @@ -165,7 +165,7 @@ void LLSplitButton::showButtons() // register ourselves as a "top" control // effectively putting us into a special draw layer - gFocusMgr.setTopCtrl(this); + gViewerWindow->addPopup(this); mItemsPanel->setFocus(TRUE); @@ -182,10 +182,7 @@ void LLSplitButton::hideButtons() mArrowBtn->setToggleState(FALSE); setUseBoundingRect(FALSE); - if(gFocusMgr.getTopCtrl() == this) - { - gFocusMgr.setTopCtrl(NULL); - } + gViewerWindow->removePopup(this); } |