diff --git a/code/ryzom/client/src/item_group_manager.cpp b/code/ryzom/client/src/item_group_manager.cpp index e69cbdfd4..5b6d8e975 100644 --- a/code/ryzom/client/src/item_group_manager.cpp +++ b/code/ryzom/client/src/item_group_manager.cpp @@ -77,7 +77,7 @@ void CItemGroup::writeTo(xmlNodePtr node) for(int i=0;i(pWM->getElementFromId("ui:interface:item_menu_in_bag:item_group_menu")); + CGroupSubMenu *pGroupSubMenu = pGroupMenu->getRootMenu(); + pGroupMenu->reset(); + pGroupMenu->delGroup(pGroupSubMenu, true); } // Inspired from macro parsing diff --git a/code/ryzom/client/src/item_group_manager.h b/code/ryzom/client/src/item_group_manager.h index 533071cc4..b1096a9f0 100644 --- a/code/ryzom/client/src/item_group_manager.h +++ b/code/ryzom/client/src/item_group_manager.h @@ -78,6 +78,7 @@ public: void saveGroups(); bool loadGroups(); void linkInterface(); + void unlinkInterface(); //Return NULL if no group was found //Return false if no group was found bool moveGroup(std::string name, INVENTORIES::TInventory dst);