[UI Overhaul] Restore LLContextMenu::appendContextSubMenu definition, lost in last commit. (Thannks for catching this, Tazy!)

This commit is contained in:
Inusaito Sayori
2014-05-29 20:12:31 -04:00
parent f2dd944acd
commit 5f6dcfa82a

View File

@@ -4983,6 +4983,17 @@ bool LLContextMenu::addChild(LLView* view, S32 tab_group)
}
BOOL LLContextMenu::appendContextSubMenu(LLContextMenu* menu)
{
if (menu == this)
{
llerrs << "Can't attach a context menu to itself" << llendl;
}
LLContextMenuBranch* item = new LLContextMenuBranch(menu->getName(), menu->getLabel(), menu);
getParent()->addChild(item->getBranch());
return append(item);
}
const S32 PIE_MENU_HEIGHT = 190;
const S32 PIE_MENU_WIDTH = 190;