Commit 22726352 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: force destruction of PopupMenu when Vout Changes.

Close #2427.
parent d0f6494e
...@@ -141,6 +141,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -141,6 +141,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
* Menu Bar * * Menu Bar *
************/ ************/
QVLCMenu::createMenuBar( this, p_intf ); QVLCMenu::createMenuBar( this, p_intf );
CONNECT( THEMIM->getIM(), voutListChanged( vout_thread_t **, int ),
this, destroyPopupMenu() );
#if 0 #if 0
/* Create a Dock to get the playlist */ /* Create a Dock to get the playlist */
...@@ -658,6 +660,12 @@ void MainInterface::debug() ...@@ -658,6 +660,12 @@ void MainInterface::debug()
#endif #endif
} }
void MainInterface::destroyPopupMenu()
{
QVLCMenu::PopupMenu(p_intf, false );
}
void MainInterface::toggleFSC() void MainInterface::toggleFSC()
{ {
if( !fullscreenControls ) return; if( !fullscreenControls ) return;
......
...@@ -165,6 +165,7 @@ public slots: ...@@ -165,6 +165,7 @@ public slots:
private slots: private slots:
void debug(); void debug();
void destroyPopupMenu();
void recreateToolbars(); void recreateToolbars();
void doComponentsUpdate(); void doComponentsUpdate();
void setName( QString ); void setName( QString );
......
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