Salome HOME
0023484: Event blocked if QGraphicsView and QGraphicsScene are used in a module
authorvsr <vsr@opencascade.com>
Mon, 2 Oct 2017 09:47:12 +0000 (12:47 +0300)
committervsr <vsr@opencascade.com>
Mon, 2 Oct 2017 09:47:12 +0000 (12:47 +0300)
src/SalomeApp/SalomeApp_ExceptionHandler.cxx

index 4534dcf6bd5da930cbc2b0320635be9d40c7a6b5..0dfcba7e2c8f5f7ff8c85dea7a63a14cd43863fe 100644 (file)
@@ -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.*/