summaryrefslogtreecommitdiff
path: root/indra/llui/llmenubutton.cpp
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2012-04-14 21:03:36 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2012-04-14 21:03:36 +0300
commit2412401e4c705c7073be845bba74353d446bd017 (patch)
tree194cd753f5bb574be84464a5ca26420d65b1d7f2 /indra/llui/llmenubutton.cpp
parent33e78bfe64240f71bcc40ca34950770ce549dc69 (diff)
CHUI-78 WIP Minor cleanup.
Diffstat (limited to 'indra/llui/llmenubutton.cpp')
-rw-r--r--indra/llui/llmenubutton.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llui/llmenubutton.cpp b/indra/llui/llmenubutton.cpp
index 98f7e0540c..320f62d5c1 100644
--- a/indra/llui/llmenubutton.cpp
+++ b/indra/llui/llmenubutton.cpp
@@ -76,7 +76,7 @@ void LLMenuButton::hideMenu()
{
if(mMenuHandle.isDead()) return;
- LLToggleableMenu* menu = dynamic_cast<LLToggleableMenu*>(mMenuHandle.get());
+ LLToggleableMenu* menu = getMenu();
if (menu)
{
menu->setVisible(FALSE);
@@ -132,7 +132,7 @@ BOOL LLMenuButton::handleKeyHere(KEY key, MASK mask )
return TRUE;
}
- LLToggleableMenu* menu = dynamic_cast<LLToggleableMenu*>(mMenuHandle.get());
+ LLToggleableMenu* menu = getMenu();
if (menu && menu->getVisible() && key == KEY_ESCAPE && mask == MASK_NONE)
{
menu->setVisible(FALSE);
@@ -160,7 +160,7 @@ void LLMenuButton::toggleMenu()
if(mMenuHandle.isDead()) return;
- LLToggleableMenu* menu = dynamic_cast<LLToggleableMenu*>(mMenuHandle.get());
+ LLToggleableMenu* menu = getMenu();
if (!menu) return;
// Store the button rectangle to toggle menu visibility if a mouse event