Commit 193e6eac authored by Jakob Leben's avatar Jakob Leben

Qt: delete unneeded MenuItemData

parent dc807170
......@@ -1456,8 +1456,9 @@ void QVLCMenu::CreateAndConnect( QMenu *menu, const char *psz_var,
action->setChecked( checked );
MenuItemData *itemData = new MenuItemData( THEDP->menusMapper, p_obj, i_val_type,
val, psz_var );
MenuItemData *itemData = qFindChild<MenuItemData*>( action, QString() );
delete itemData;
itemData = new MenuItemData( action, p_obj, i_val_type, val, psz_var );
/* remove previous signal-slot connection(s) if any */
action->disconnect( );
......
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