QString aBackupFile = SUPERVGUI::createBackupFile( f );
if ( main->getDataflow()->Export(f.latin1()) ) {
- unregisterGraph(main);
- registerGraph(f, main);
+ // mkr : PAL8110 : if we re-register graph with its xml-file name the "Supervisor Warning"
+ // after object browser popup "Display" item will not appear, it's an error,
+ // because of this dataflow is already displayed.
+ //unregisterGraph(main);
+ //registerGraph(f, main);
// remove a backup file if export was successfull
if ( !aBackupFile.isNull() && !aBackupFile.isEmpty() )
getMain()->getCanvas()->update();
if ( myInStudy ) // put values to study (supervision, supervision->dataflow, supervision->dataflow->runXXX, etc.
- getMain()->putDataStudy( getEngine(), STUDY_PORT_OUT );
+ if ( getMain()->putDataStudy( getEngine(), STUDY_PORT_OUT ) ) {
+ // mkr : PAL8110 : re-register dataflow in object browser with
+ // changing its key to IOR name (from xml-file name, for example)
+ Supervision.unregisterGraph(getMain());
+ Supervision.registerGraph(getMain()->getDataflow()->getIOR(), getMain());
+ }
}