[vlc-commits] qt: remove uninitialized member
Rémi Denis-Courmont
git at videolan.org
Wed Nov 30 23:24:58 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 1 00:10:32 2016 +0200| [c2d69ef720d9f7e867af1a1b521d0d3c93a55049] | committer: Rémi Denis-Courmont
qt: remove uninitialized member
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c2d69ef720d9f7e867af1a1b521d0d3c93a55049
---
modules/gui/qt/components/interface_widgets.cpp | 4 ++--
modules/gui/qt/components/interface_widgets.hpp | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index 7d4b43b..03ad7f7 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -189,7 +189,7 @@ void VideoWidget::resizeEvent( QResizeEvent *event )
int VideoWidget::qtMouseButton2VLC( Qt::MouseButton qtButton )
{
- if( !b_mouse_events || p_window == NULL )
+ if( p_window == NULL )
return -1;
switch( qtButton )
{
@@ -230,7 +230,7 @@ void VideoWidget::mousePressEvent( QMouseEvent* event )
void VideoWidget::mouseMoveEvent( QMouseEvent *event )
{
- if( b_mouse_events && p_window != NULL )
+ if( p_window != NULL )
{
vout_window_ReportMouseMoved( p_window, event->x(), event->y() );
event->accept();
diff --git a/modules/gui/qt/components/interface_widgets.hpp b/modules/gui/qt/components/interface_widgets.hpp
index b746bc3..430fe1c 100644
--- a/modules/gui/qt/components/interface_widgets.hpp
+++ b/modules/gui/qt/components/interface_widgets.hpp
@@ -82,7 +82,6 @@ private:
QWidget *stable;
QLayout *layout;
- bool b_mouse_events;
signals:
void sizeChanged( int, int );
More information about the vlc-commits
mailing list