From 03525e493820f8a2900e182d7df61f8c2aaba117 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Tue, 17 Jun 2008 21:09:03 +0200 Subject: [PATCH] Qt menus: fix popup submenus non disparition Signed-off-by: Jean-Baptiste Kempf --- modules/gui/qt4/menus.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp index 6744388eac..7850c30edd 100644 --- a/modules/gui/qt4/menus.cpp +++ b/modules/gui/qt4/menus.cpp @@ -772,17 +772,20 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show ) InputAutoMenuBuilder( VLC_OBJECT( p_input ), objects, varnames ); vlc_object_release( p_input ); - action = menu->addMenu( AudioMenu( p_intf, NULL ) ); + submenu = new QMenu( menu ); + action = menu->addMenu( AudioMenu( p_intf, submenu ) ); action->setText( qtr( "&Audio" ) ); if( action->menu()->isEmpty() ) action->setEnabled( false ); - action = menu->addMenu( VideoMenu( p_intf, NULL ) ); + submenu = new QMenu( menu ); + action = menu->addMenu( VideoMenu( p_intf, submenu ) ); action->setText( qtr( "&Video" ) ); if( action->menu()->isEmpty() ) action->setEnabled( false ); - action = menu->addMenu( NavigMenu( p_intf, NULL ) ); + submenu = new QMenu( menu ); + action = menu->addMenu( NavigMenu( p_intf, submenu ) ); action->setText( qtr( "&Playback" ) ); if( action->menu()->isEmpty() ) action->setEnabled( false ); -- 2.39.2