vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Mon Sep 10 
19:36:14 2012 +0200| [7a216cf685a834d038da9b474271687167c10441] | committer: 
Jean-Baptiste Kempf

Qt: fix a crash when using the skins

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

 modules/gui/qt4/menus.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index f8bd1e5..04e88c7 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -958,6 +958,7 @@ void VLCMenuBar::MiscPopupMenu( intf_thread_t *p_intf, bool 
show )
 {
     POPUP_BOILERPLATE
 
+    menu = new QMenu();
     if( p_input )
     {
         varnames.append( "audio-es" );
@@ -965,7 +966,6 @@ void VLCMenuBar::MiscPopupMenu( intf_thread_t *p_intf, bool 
show )
         menu->addSeparator();
     }
 
-    menu = new QMenu();
     Populate( p_intf, menu, varnames, objects );
 
     menu->addSeparator();

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to