]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/main_interface.cpp
Fixed MRL update on dvb bandwidth modification.
[vlc] / modules / gui / qt4 / main_interface.cpp
index e48af0d0d74796e98ccefbb73c4aca99417a2e8d..22e40511704930684f5be22526dfced89215aa3d 100644 (file)
@@ -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;
@@ -704,6 +712,7 @@ WId MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
                                  unsigned int *pi_height )
 {
     /* Request the videoWidget */
+    if( !videoWidget ) return 0;
     WId ret = videoWidget->request( p_nvout,pi_x, pi_y,
                                     pi_width, pi_height, b_keep_size );
     if( ret ) /* The videoWidget is available */