Permalink
Browse files

Prevent Edit->Attach/Detach menus from cumulatively growing larger ev…

…ery time LiruUseContextMenus setting was changed.
  • Loading branch information...
1 parent 98516a2 commit 632725e7886764a2861f7ff940d4f3cb4508571e @Shyotl Shyotl committed Jan 12, 2017
Showing with 4 additions and 0 deletions.
  1. +4 −0 indra/newview/llvoavatarself.cpp
@@ -506,6 +506,10 @@ void LLVOAvatarSelf::buildContextMenus()
}
}
+ //buildContextMenus can be called whenever "LiruUseContextMenus" setting changes. Clear out Edit->Attach/Detach menus before (re)populating them.
+ gAttachSubMenu->empty();
+ gDetachSubMenu->empty();
+
for (S32 pass = 0; pass < 2; pass++)
{
// *TODO: Skinning - gAttachSubMenu is an awful, awful hack

0 comments on commit 632725e

Please sign in to comment.