catch ( Standard_Failure )
{
Handle(Standard_Failure) aFailure = Standard_Failure::Caught();
- anErrorMsg = aFailure->GetMessageString();
+ if (aFailure)
+ anErrorMsg = aFailure->GetMessageString();
+ else
+ anErrorMsg = "failure unknown: catch ( Standard_Failure ) does not give access to failure!";
aResult = false;
}
catch ( ... )
connect( myProfileFinish, SIGNAL( objectSelected( const QString& ) ), this, SIGNAL( profileFinishChanged( const QString& ) ) );
connect( myProfileNumber, SIGNAL( valueChanged( int ) ), this, SIGNAL( profileNumberChanged( int ) ) );
- connect( myParams, SIGNAL( editingFinished() ), this, SIGNAL( onParametersEditingFinished() ) );
+ connect( myParams, SIGNAL( editingFinished() ), this, SLOT( onParametersEditingFinished() ) );
new HYDROGUI_OCCSelector( module(), viewer(), selectionMgr() );
{
if ( !myPreview.IsNull() )
{
- HYDROGUI_ProfileInterpolateDlg* aDlg = new HYDROGUI_ProfileInterpolateDlg( module(), getName() );
+ HYDROGUI_ProfileInterpolateDlg* aDlg = ::qobject_cast<HYDROGUI_ProfileInterpolateDlg*>( inputPanel() );
if ( aDlg && !aDlg->getAISContext().IsNull() )
{
aDlg->getAISContext()->Remove( myPreview, false );
{
if ( !myPreview.IsNull() )
{
- HYDROGUI_ProfileInterpolateDlg* aDlg = new HYDROGUI_ProfileInterpolateDlg( module(), getName() );
+ HYDROGUI_ProfileInterpolateDlg* aDlg = ::qobject_cast<HYDROGUI_ProfileInterpolateDlg*>( inputPanel() );
if ( aDlg && !aDlg->getAISContext().IsNull() )
{
aDlg->getAISContext()->Remove( myPreview, false );