Commit 30e16170 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>
parent 8b70a12e
...@@ -1386,6 +1386,10 @@ void QVLCMenu::CreateAndConnect( QMenu *menu, const char *psz_var, ...@@ -1386,6 +1386,10 @@ void QVLCMenu::CreateAndConnect( QMenu *menu, const char *psz_var,
MenuItemData *itemData = new MenuItemData( THEDP->menusMapper, p_obj, i_val_type, MenuItemData *itemData = new MenuItemData( THEDP->menusMapper, p_obj, i_val_type,
val, psz_var ); val, psz_var );
/* remove previous signal-slot connection(s) if any */
action->disconnect( );
CONNECT( action, triggered(), THEDP->menusMapper, map() ); CONNECT( action, triggered(), THEDP->menusMapper, map() );
THEDP->menusMapper->setMapping( action, itemData ); 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