[vlc-commits] Qt: don't allow negative screen-numbers
Jean-Baptiste Kempf
git at videolan.org
Sun Jan 25 19:35:05 CET 2015
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jan 25 19:34:14 2015 +0100| [cd112b85939b04f50983b1f2a705c448eb79b527] | committer: Jean-Baptiste Kempf
Qt: don't allow negative screen-numbers
Close #13643
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd112b85939b04f50983b1f2a705c448eb79b527
---
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 07758b1..39aff59 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -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;
}
More information about the vlc-commits
mailing list