mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-03 20:50:32 +05:00
Avoid failure of Create Mesh dialog in case of invalid plugin library
This commit is contained in:
parent
ce0e352599
commit
5c094a96e9
@ -34,7 +34,8 @@
|
|||||||
#include "SMESHGUI_VTKUtils.h"
|
#include "SMESHGUI_VTKUtils.h"
|
||||||
#include "SMESHGUI_XmlHandler.h"
|
#include "SMESHGUI_XmlHandler.h"
|
||||||
|
|
||||||
#include "SMESH_Actor.h"
|
#include <SMESH_Actor.h>
|
||||||
|
#include <SMESH_TryCatch.hxx>
|
||||||
|
|
||||||
// SALOME GUI includes
|
// SALOME GUI includes
|
||||||
#include <SUIT_Desktop.h>
|
#include <SUIT_Desktop.h>
|
||||||
@ -628,10 +629,13 @@ namespace SMESH
|
|||||||
|
|
||||||
HypothesisData* aHypData = GetHypothesisData(aHypType);
|
HypothesisData* aHypData = GetHypothesisData(aHypType);
|
||||||
QString aServLib = aHypData->ServerLibName;
|
QString aServLib = aHypData->ServerLibName;
|
||||||
|
SMESH_TRY;
|
||||||
return SMESHGUI::GetSMESHGen()->IsApplicable( aHypType.toLatin1().data(),
|
return SMESHGUI::GetSMESHGen()->IsApplicable( aHypType.toLatin1().data(),
|
||||||
aServLib.toUtf8().data(),
|
aServLib.toUtf8().data(),
|
||||||
theGeomObject,
|
theGeomObject,
|
||||||
toCheckAll);
|
toCheckAll);
|
||||||
|
SMESH_CATCH( SMESH::printErrorInDebugMode );
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user