diff --git a/client/src/itemflex.hpp b/client/src/itemflex.hpp index 5993eaeb..32e1411e 100644 --- a/client/src/itemflex.hpp +++ b/client/src/itemflex.hpp @@ -40,12 +40,12 @@ class ItemFlex: public Widget , m_hbox(argHBox) { for(auto [widget, autoDelete]: argChildList){ - appendItem(widget, autoDelete); + addChild(widget, autoDelete); } } public: - void appendItem(Widget *argWidget, bool argAutoDelete) + void addChild(Widget *argWidget, bool argAutoDelete) override { m_origChildList.push_back(argWidget); if(m_hbox){ diff --git a/client/src/menuboard.cpp b/client/src/menuboard.cpp index 0bf2463d..cff50791 100644 --- a/client/src/menuboard.cpp +++ b/client/src/menuboard.cpp @@ -162,7 +162,7 @@ void MenuBoard::appendMenu(Widget *argWidget, bool argAddSeparator, bool argAuto } m_itemList.emplace_back(argWidget, argAddSeparator); - m_canvas.appendItem((new Widget + m_canvas.addChild((new Widget { DIR_UPLEFT, // ignore 0,