Commit a5688a51 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

qt: fix crash if no fullscreen controls are available

Close #19349
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit e472717e)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4fae1856
......@@ -870,7 +870,8 @@ void MainInterface::setVideoFullScreen( bool fs )
if( numscreen < 0 || numscreen >= QApplication::desktop()->screenCount() )
numscreen = QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi );
fullscreenControls->setTargetScreen( numscreen );
if( fullscreenControls )
fullscreenControls->setTargetScreen( numscreen );
if ( numscreen >= 0 )
{
......
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