diff options
author | Richard Linden <none@none> | 2010-03-05 14:46:00 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2010-03-05 14:46:00 -0800 |
commit | 931ff555bdfe109e18a85a005bbe340f1951da40 (patch) | |
tree | eca53eefddae66b310182d9ffa88490b96fb8536 /indra/newview/llexpandabletextbox.cpp | |
parent | 18687a365245122fd74829fc0b735931d2d7d0e0 (diff) | |
parent | 485711e179e0ccf6351feb02318f41bbb5593662 (diff) |
merge
Diffstat (limited to 'indra/newview/llexpandabletextbox.cpp')
-rw-r--r-- | indra/newview/llexpandabletextbox.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/newview/llexpandabletextbox.cpp b/indra/newview/llexpandabletextbox.cpp index 3818ee6f78..362010d65a 100644 --- a/indra/newview/llexpandabletextbox.cpp +++ b/indra/newview/llexpandabletextbox.cpp @@ -35,6 +35,7 @@ #include "llscrollcontainer.h" #include "llwindow.h" +#include "llviewerwindow.h" static LLDefaultChildRegistry::Register<LLExpandableTextBox> t1("expandable_text"); @@ -382,7 +383,7 @@ void LLExpandableTextBox::expandTextBox() setFocus(TRUE); // this lets us receive top_lost event(needed to collapse text box) // it also draws text box above all other ui elements - gFocusMgr.setTopCtrl(this); + gViewerWindow->addPopup(this); mExpanded = true; } @@ -401,10 +402,7 @@ void LLExpandableTextBox::collapseTextBox() updateTextBoxRect(); - if(gFocusMgr.getTopCtrl() == this) - { - gFocusMgr.setTopCtrl(NULL); - } + gViewerWindow->removePopup(this); } void LLExpandableTextBox::onFocusLost() |