From 62619540ab0eaeff1b9c1ceb06af3ba5f3eb2416 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 9 Aug 2006 09:56:01 +0000 Subject: [PATCH] PAL13020: EDF237: environment is freezed because of the IHM of Salome. Take into account ContextMenu event. --- src/SUITApp/SUITApp_Application.cxx | 2 +- src/Session/SALOME_Session_Server.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SUITApp/SUITApp_Application.cxx b/src/SUITApp/SUITApp_Application.cxx index 7fe9b33a3..af2badc6b 100644 --- a/src/SUITApp/SUITApp_Application.cxx +++ b/src/SUITApp/SUITApp_Application.cxx @@ -75,7 +75,7 @@ bool SUITApp_Application::notify( QObject* receiver, QEvent* e ) QEvent::Type aType = e->type(); if (aType == QEvent::MouseButtonPress || aType == QEvent::MouseButtonRelease || aType == QEvent::MouseButtonDblClick || aType == QEvent::MouseMove || - aType == QEvent::Wheel || + aType == QEvent::Wheel || aType == QEvent::ContextMenu || aType == QEvent::KeyPress || aType == QEvent::KeyRelease || aType == QEvent::Accel || aType == QEvent::AccelOverride) return false; diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index fbc459a61..4aec7c8ed 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -253,7 +253,7 @@ public: QEvent::Type aType = e->type(); if (aType == QEvent::MouseButtonPress || aType == QEvent::MouseButtonRelease || aType == QEvent::MouseButtonDblClick || aType == QEvent::MouseMove || - aType == QEvent::Wheel || + aType == QEvent::Wheel || aType == QEvent::ContextMenu || aType == QEvent::KeyPress || aType == QEvent::KeyRelease || aType == QEvent::Accel || aType == QEvent::AccelOverride) return false; -- 2.39.2