Commit cd112b85 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: don't allow negative screen-numbers

Close #13643
parent bf2b378c
......@@ -961,7 +961,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