[vlc-commits] Qt: don't allow negative screen-numbers
Jean-Baptiste Kempf
git at videolan.org
Sun Jan 25 19:37:16 CET 2015
vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jan 25 19:34:14 2015 +0100| [015e5d2d556c234d76bcc73ca725c34b4d4ac442] | committer: Jean-Baptiste Kempf
Qt: don't allow negative screen-numbers
Close #13643
(cherry picked from commit cd112b85939b04f50983b1f2a705c448eb79b527)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=015e5d2d556c234d76bcc73ca725c34b4d4ac442
---
modules/gui/qt4/components/controller.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index a006ff0..6624509 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -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;
}
More information about the vlc-commits
mailing list