diff options
| author | Sergey Borushevsky <sborushevsky@productengine.com> | 2009-12-02 19:49:44 +0200 |
|---|---|---|
| committer | Sergey Borushevsky <sborushevsky@productengine.com> | 2009-12-02 19:49:44 +0200 |
| commit | 69a2843d5bfc3c5cb2706639eb3429369ded969b (patch) | |
| tree | f18362a91c6eecea185623f1c2652597ea5ebc01 /indra/newview/llimfloater.cpp | |
| parent | aa84c4afff251d771c7571803ccce56d1f439ae2 (diff) | |
Implemented normal task EXT-2833 ("Close" button should hide bottom bar windows)
When IM floater isn't torn off, "Close" button is disabled.
It's not hidden, since there is a hack in LLFloater::updateButton.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llimfloater.cpp')
| -rw-r--r-- | indra/newview/llimfloater.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 9b7df38c5e..9de0b1f827 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -419,6 +419,16 @@ void LLIMFloater::setDocked(bool docked, bool pop_on_undock) } } +void LLIMFloater::setTornOff(bool torn_off) +{ + // When IM Floater isn't torn off, "close" button should be hidden. + // This call will just disables it, since there is a hack in LLFloater::updateButton, + // which prevents hiding of close button in that case. + setCanClose(torn_off); + + LLTransientDockableFloater::setTornOff(torn_off); +} + void LLIMFloater::setVisible(BOOL visible) { LLNotificationsUI::LLScreenChannel* channel = dynamic_cast<LLNotificationsUI::LLScreenChannel*> |
