Commit 421727a5 authored by twanvl's avatar twanvl

Fixed memory leak in right click menu of card list header

parent eff40ffc
......@@ -279,9 +279,9 @@ wxListItemAttr* CardListBase::OnGetItemAttr(long pos) const {
void CardListBase::onColumnRightClick(wxListEvent&) {
// show menu
wxMenu* m = new wxMenu;
m->Append(ID_SELECT_COLUMNS, _("&Select Columns..."), _("Select what columns should be shown and in what order."));
PopupMenu(m);
wxMenu m;
m.Append(ID_SELECT_COLUMNS, _MENU_("card list columns"), _HELP_("card list columns"));
PopupMenu(&m);
}
void CardListBase::onColumnResize(wxListEvent& ev) {
storeColumns();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment