From c93f7f7b41c9c6abc144ae7e2985b54558cae8ea Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 2 Oct 2017 12:47:12 +0300 Subject: [PATCH] 0023484: Event blocked if QGraphicsView and QGraphicsScene are used in a module --- src/SalomeApp/SalomeApp_ExceptionHandler.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx index 4534dcf6b..0dfcba7e2 100644 --- a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx +++ b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx @@ -53,16 +53,18 @@ SalomeApp_ExceptionHandler::SalomeApp_ExceptionHandler( const bool floatSignal ) /*!Try to call SUIT_ExceptionHandler::internalHandle(o, e), catch if failure.*/ bool SalomeApp_ExceptionHandler::handleSignals( QObject* o, QEvent* e ) { + bool result = true; + try { OCC_CATCH_SIGNALS; - SUIT_ExceptionHandler::internalHandle( o, e ); + result = SUIT_ExceptionHandler::internalHandle( o, e ); } catch(Standard_Failure) { Handle(Standard_Failure) aFail = Standard_Failure::Caught(); throw Standard_Failure( aFail->GetMessageString() ); } - return true; + return result; } /*!Try to call handleSignals( o, e ), catch and show error message.*/ -- 2.39.2