diff options
author | Paul Guslisty <pguslisty@productengine.com> | 2010-04-30 16:10:57 +0300 |
---|---|---|
committer | Paul Guslisty <pguslisty@productengine.com> | 2010-04-30 16:10:57 +0300 |
commit | 6918b292e1dea08998649c3ce0e2bfc95932a229 (patch) | |
tree | c6c232ddab52e7364719789a02617ce6d922c2a9 /indra/newview/llfavoritesbar.cpp | |
parent | 5078f522b14d87c6c4adf97f93004b8610bb8e9b (diff) |
Fixed normal EXT-6997 (Fav bar: Pop-up menu for LM in overflow dropdown is kept after LM was dragged away)
- Added menu hiding on left mouse down callback for drop down menu item
Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/337/
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llfavoritesbar.cpp')
-rw-r--r-- | indra/newview/llfavoritesbar.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llfavoritesbar.cpp b/indra/newview/llfavoritesbar.cpp index 4c1e3461a5..6b7a257a4b 100644 --- a/indra/newview/llfavoritesbar.cpp +++ b/indra/newview/llfavoritesbar.cpp @@ -1165,6 +1165,17 @@ void LLFavoritesBarCtrl::pastFromClipboard() const void LLFavoritesBarCtrl::onButtonMouseDown(LLUUID id, LLUICtrl* ctrl, S32 x, S32 y, MASK mask) { + // EXT-6997 (Fav bar: Pop-up menu for LM in overflow dropdown is kept after LM was dragged away) + // mInventoryItemsPopupMenuHandle.get() - is a pop-up menu (of items) in already opened dropdown menu. + // We have to check and set visibility of pop-up menu in such a way instead of using + // LLMenuHolderGL::hideMenus() because it will close both menus(dropdown and pop-up), but + // we need to close only pop-up menu while dropdown one should be still opened. + LLMenuGL* menu = (LLMenuGL*)mInventoryItemsPopupMenuHandle.get(); + if(menu && menu->getVisible()) + { + menu->setVisible(FALSE); + } + mDragItemId = id; mStartDrag = TRUE; |