mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-03 18:30:33 +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_XmlHandler.h"
|
||||
|
||||
#include "SMESH_Actor.h"
|
||||
#include <SMESH_Actor.h>
|
||||
#include <SMESH_TryCatch.hxx>
|
||||
|
||||
// SALOME GUI includes
|
||||
#include <SUIT_Desktop.h>
|
||||
@ -628,10 +629,13 @@ namespace SMESH
|
||||
|
||||
HypothesisData* aHypData = GetHypothesisData(aHypType);
|
||||
QString aServLib = aHypData->ServerLibName;
|
||||
SMESH_TRY;
|
||||
return SMESHGUI::GetSMESHGen()->IsApplicable( aHypType.toLatin1().data(),
|
||||
aServLib.toUtf8().data(),
|
||||
theGeomObject,
|
||||
toCheckAll);
|
||||
SMESH_CATCH( SMESH::printErrorInDebugMode );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user