From: barate Date: Thu, 20 Jun 2013 15:15:15 +0000 (+0000) Subject: Show proper message in GUI when a SALOME::SALOME_Exception is caught (patch from... X-Git-Tag: B4KillOfAutomake~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9863bff035b9cf9c54149ecfde1598ba7b69cc73;p=modules%2Fgui.git Show proper message in GUI when a SALOME::SALOME_Exception is caught (patch from O. Mircescu, fix Mantis bug #21265) --- diff --git a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx index b9e3139cb..a56afd07a 100644 --- a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx +++ b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx @@ -21,6 +21,7 @@ // #include "SalomeApp_ExceptionHandler.h" +#include "Utils_CorbaException.hxx" #include "CASCatch.hxx" #include "Basics_OCCTVersion.hxx" @@ -93,6 +94,10 @@ bool SalomeApp_ExceptionHandler::handle( QObject* o, QEvent* e ) { showMessage( title, QString( e.GetMessageString() ) ); } + catch( SALOME::SALOME_Exception& ex) + { + showMessage( title, QString( ex.details.text)); + } #ifndef WIN32 catch(...) {