Commit 8da9abc6 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt: main_interface: Create the videoWidget when needed

parent a1799beb
......@@ -746,6 +746,11 @@ void MainInterface::getVideoSlot( struct vout_window_t *p_wnd,
toggleUpdateSystrayMenu();
/* Request the videoWidget */
if ( !videoWidget )
{
videoWidget = new VideoWidget( p_intf, stackCentralW );
stackCentralW->addWidget( videoWidget );
}
*res = videoWidget->request( p_wnd );
if( *res ) /* The videoWidget is available */
{
......
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