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