diff options
author | Richard Linden <none@none> | 2010-03-05 15:41:37 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2010-03-05 15:41:37 -0800 |
commit | a3fa96ff0eeb3691f38e82ad4a245db8049dfddd (patch) | |
tree | d02718296dfec15284ee94cd647b89084502f213 /indra/newview/llsplitbutton.cpp | |
parent | f0ea8083ebf207d00c043dd35eddf5ab55e71c0d (diff) | |
parent | 27919e106a383ea873b9bf73d2974b40cbe2e603 (diff) |
merge
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); } |