[vlc-commits] commit: Qt: delete unneeded MenuItemData (Jakob Leben )

git at videolan.org git at videolan.org
Mon Mar 29 12:56:02 CEST 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Mon Mar 29 12:52:46 2010 +0200| [193e6eacddb63e8a5bda42395ee79b5b27db6408] | committer: Jakob Leben 

Qt: delete unneeded MenuItemData

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=193e6eacddb63e8a5bda42395ee79b5b27db6408
---

 modules/gui/qt4/menus.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 51e982f..b0f4264 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -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( );



More information about the vlc-commits mailing list