From 88ab946240be1a77335afbb096e16599f79d6b0f Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 14 May 2014 10:37:50 +0400 Subject: [PATCH] Fix: avoid pop-up requested event when keyboard modifiers are used. --- src/XGUI/XGUI_ViewWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/XGUI/XGUI_ViewWindow.cpp b/src/XGUI/XGUI_ViewWindow.cpp index 328b29306..bff1e923f 100644 --- a/src/XGUI/XGUI_ViewWindow.cpp +++ b/src/XGUI/XGUI_ViewWindow.cpp @@ -679,8 +679,10 @@ void XGUI_ViewWindow::vpMousePressEvent(QMouseEvent* theEvent) //**************************************************************** void XGUI_ViewWindow::contextMenuEvent(QContextMenuEvent* theEvent) { - QFrame::contextMenuEvent(theEvent); - emit contextMenuRequested(theEvent); + if (theEvent->modifiers() == Qt::NoModifier) { + QFrame::contextMenuEvent(theEvent); + emit contextMenuRequested(theEvent); + } } //**************************************************************** -- 2.39.2