if (!aSObj) return;
//TEST DU PARENT == VISU
- _PTR(GenericAttribute) anAttr;
- if (aSObj->FindAttribute(anAttr, "AttributeName")) {
+ _PTR(StudyBuilder) aBuilder = aCStudy->NewBuilder();
+ _PTR(GenericAttribute) anAttr = aBuilder->FindOrCreateAttribute(aSObj, "AttributeName");
+ if (anAttr) {
_PTR(AttributeName) aName (anAttr);
QString Name = VisuGUI_NameDlg::getName( GetDesktop( this ), aName->Value().c_str() );
if (!Name.isEmpty()) {
action( VISU_SHOW_ANIMATION )->addTo(theMenu);
} else if (IsSObjectTable(SO)) {
- action( VISU_SHOW_TABLE )->addTo(theMenu);
- action( VISU_CREATE_CURVES )->addTo(theMenu);
- action( VISU_EXPORT_TABLE )->addTo(theMenu);
- theMenu->insertSeparator();
-
+ OB_Browser* ob = getApp()->objectBrowser();
+ if (ob && theClient == ob->popupClientType()) {
+ action( VISU_SHOW_TABLE )->addTo(theMenu);
+ action( VISU_CREATE_CURVES )->addTo(theMenu);
+ action( VISU_EXPORT_TABLE )->addTo(theMenu);
+ theMenu->insertSeparator();
+ }
} else {
if (!CORBA::is_nil(anObject)) {
SALOME_MED::MED_var aMED = SALOME_MED::MED::_narrow(anObject);
timer.Show();
#endif
theModule->application()->putInfo(QObject::tr("INF_DONE"));
+ // Make "Save" button active
+ theModule->getApp()->updateActions();
} catch (std::runtime_error& exc) {
INFOS(exc.what());
SUIT_MessageBox::warn1 (GetDesktop(theModule),