Commit 015e5d2d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: don't allow negative screen-numbers

Close #13643

(cherry picked from commit cd112b85939b04f50983b1f2a705c448eb79b527)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1a09aeae
......@@ -953,7 +953,7 @@ void FullscreenControllerWidget::toggleFullwidth()
int FullscreenControllerWidget::targetScreen()
{
if( i_screennumber == -1 || i_screennumber > QApplication::desktop()->numScreens() )
if( i_screennumber < 0 || i_screennumber > QApplication::desktop()->numScreens() )
return QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi );
return i_screennumber;
}
......
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