diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-05-18 15:02:15 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-05-18 15:02:15 +0300 |
commit | 5bee6f1e5e5ec9d25283ecf1815b57e5921f2c47 (patch) | |
tree | 20419ffc0973601c01d4fa0ac431bce573ae79cf | |
parent | 6d4d58738c8f1703d4e821308f749a3ae577268c (diff) |
MAINT-6421 Inappropriate menu items are presented in gear menu when no outfit is selected in Visual Outfit Browser
-rw-r--r-- | indra/newview/lloutfitgallery.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/lloutfitgallery.cpp b/indra/newview/lloutfitgallery.cpp index a36728e6ac..e6c41b612f 100644 --- a/indra/newview/lloutfitgallery.cpp +++ b/indra/newview/lloutfitgallery.cpp @@ -735,11 +735,12 @@ LLOutfitGalleryGearMenu::LLOutfitGalleryGearMenu(LLOutfitListBase* olist) void LLOutfitGalleryGearMenu::onUpdateItemsVisibility() { if (!mMenu) return; + bool have_selection = getSelectedOutfitID().notNull(); mMenu->setItemVisible("expand", FALSE); mMenu->setItemVisible("collapse", FALSE); - mMenu->setItemVisible("upload_photo", TRUE); - mMenu->setItemVisible("select_photo", TRUE); - mMenu->setItemVisible("take_snapshot", TRUE); + mMenu->setItemVisible("upload_photo", have_selection); + mMenu->setItemVisible("select_photo", have_selection); + mMenu->setItemVisible("take_snapshot", have_selection); LLOutfitListGearMenuBase::onUpdateItemsVisibility(); } |