Checks if the videoWidget exist before resizing it, fix #1328
authorRafaël Carré <funman@videolan.org>
Mon, 8 Oct 2007 21:11:50 +0000 (21:11 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 8 Oct 2007 21:11:50 +0000 (21:11 +0000)
modules/gui/qt4/main_interface.cpp

index 77982c1..c8d7732 100644 (file)
@@ -385,7 +385,8 @@ void MainInterface::calculateInterfaceSize()
 
 void MainInterface::resizeEvent( QResizeEvent *e )
 {
-    videoWidget->widgetSize.setWidth(  e->size().width() - addSize.width() );
+    if( videoWidget )
+        videoWidget->widgetSize.setWidth( e->size().width() - addSize.width() );
     if( videoWidget && videoIsActive && videoWidget->widgetSize.height() > 1 )
     {
         SET_WH( videoWidget, e->size().width() - addSize.width(),