[vlc-devel] [PATCH 2/2] qt: avoid forwarding contextmenu events from videowidget to main UI

Pierre Lamot pierre at videolabs.io
Wed Oct 25 17:59:33 CEST 2017


  Vout send intf-popupmenu resquest itself on right click, this was leading
  to a race condition for the menu creation.
---
 modules/gui/qt/components/interface_widgets.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index 08079ec9c4..9965407b68 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -83,7 +83,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i, QWidget* p_parent )
 {
     /* Set the policy to expand in both directions */
     // setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
-
+    setContextMenuPolicy( Qt::PreventContextMenu );
     layout = new QHBoxLayout( this );
     layout->setContentsMargins( 0, 0, 0, 0 );
     stable = NULL;
-- 
2.14.2



More information about the vlc-devel mailing list