msgid "VisuGUI::ERR_ERROR_IN_THE_FILE"
msgstr "Error in the file"
-msgid "VisuGUI::ERR_CANT_CREATE_ACTOR"
+msgid "ERR_CANT_CREATE_ACTOR"
msgstr "Can't create actor for this presentation"
msgid "VisuGUI::ERR_ACTIVATE_VIEW3D"
}
}
thePrs->RemoveFromStudy();
- //theModule->updateObjBrowser(); //update Object browser
}
void
return aActor;
if(SVTK_ViewWindow* aView = GetViewWindow(theModule)){
QApplication::setOverrideCursor( Qt::waitCursor );
- if(aActor = thePrs->CreateActor()){
- aView->AddActor(aActor);
+ try{
+ if(aActor = thePrs->CreateActor())
+ aView->AddActor(aActor);
+ }catch(std::exception& exc){
+ SUIT_MessageBox::warn1(GetDesktop(theModule),
+ QObject::tr("WRN_VISU"),
+ QObject::tr("ERR_CANT_CREATE_ACTOR"),
+ QObject::tr("BUT_OK"));
}
QApplication::restoreOverrideCursor();
}
}
}
}
- //theModule->updateObjBrowser();
PlotContainer( theModule, pContainer, VISU::eDisplay );
}
}