From 632725e7886764a2861f7ff940d4f3cb4508571e Mon Sep 17 00:00:00 2001 From: Shyotl Date: Wed, 11 Jan 2017 18:10:09 -0600 Subject: [PATCH] Prevent Edit->Attach/Detach menus from cumulatively growing larger every time LiruUseContextMenus setting was changed. --- indra/newview/llvoavatarself.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index 40815e09e..f3ef19ee9 100644 --- a/indra/newview/llvoavatarself.cpp +++ b/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