Commit 27166c04 authored by Rafaël Carré's avatar Rafaël Carré

Checks if the videoWidget exist before resizing it, fix #1328

parent e3206fdb
...@@ -385,7 +385,8 @@ void MainInterface::calculateInterfaceSize() ...@@ -385,7 +385,8 @@ void MainInterface::calculateInterfaceSize()
void MainInterface::resizeEvent( QResizeEvent *e ) 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 ) if( videoWidget && videoIsActive && videoWidget->widgetSize.height() > 1 )
{ {
SET_WH( videoWidget, e->size().width() - addSize.width(), SET_WH( videoWidget, e->size().width() - addSize.width(),
......
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