Commit dc5389ad authored by Erwan Tulou's avatar Erwan Tulou Committed by Rémi Denis-Courmont

QT4 menus : remove previous signal-slot connection(s) if any (correct trac #2818)

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 30e16170)
parent acfeac92
......@@ -1386,6 +1386,10 @@ void QVLCMenu::CreateAndConnect( QMenu *menu, const char *psz_var,
MenuItemData *itemData = new MenuItemData( THEDP->menusMapper, p_obj, i_val_type,
val, psz_var );
/* remove previous signal-slot connection(s) if any */
action->disconnect( );
CONNECT( action, triggered(), THEDP->menusMapper, map() );
THEDP->menusMapper->setMapping( action, itemData );
......
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