]> git.sesse.net Git - vlc/commitdiff
Qt: videoWidget shouldn't be show/hide(), the parent stackWidget should toggle.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 Jun 2010 00:28:34 +0000 (02:28 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 Jun 2010 00:30:11 +0000 (02:30 +0200)
modules/gui/qt4/components/interface_widgets.cpp

index 0913750f06c671f3b2a6a5a25c5381c35b33da3f..b8ed7c54d4e4104fa5d9037323df53767cb3fa43 100644 (file)
@@ -72,6 +72,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i )
     layout = new QHBoxLayout( this );
     layout->setContentsMargins( 0, 0, 0, 0 );
     stable = NULL;
+    show();
 }
 
 VideoWidget::~VideoWidget()
@@ -154,7 +155,6 @@ WId VideoWidget::request( int *pi_x, int *pi_y,
    Parent has to care about resizing itself */
 void VideoWidget::SetSizing( unsigned int w, unsigned int h )
 {
-    if( !isVisible() ) show();
     resize( w, h );
     emit sizeChanged( w, h );
     /* Work-around a bug?misconception? that would happen when vout core resize
@@ -177,7 +177,6 @@ void VideoWidget::release( void )
     stable = NULL;
 
     updateGeometry();
-    hide();
 }
 
 /**********************************************************************