void SUPERVGUI_CanvasPortIn::setInput()
{
- getMain()->Editing(); // PAL6170: GUI->Engine: setting "Editing" flag
+ // asv 28.01.05 : set "Editing" flag only on "OK" pressed in BrowseDlg
+ //getMain()->Editing(); // PAL6170: GUI->Engine: setting "Editing" flag
if (!myDlg) {
myDlg = new SUPERVGUI_GetValueDlg(this);
myDlg->installEventFilter(this);
{
Trace("SUPERVGUI_CanvasPortOut::toStudy");
- if (getMain()->getStudy()->getStudyDocument()->GetProperties()->IsLocked()) {
+ // asv 08.02.05 : added && !myInStudy - fix for PAL8105
+ if ( getMain()->getStudy()->getStudyDocument()->GetProperties()->IsLocked() && !myInStudy ) {
QMessageBox::warning(QAD_Application::getDesktop(), tr("WRN_WARNING"),
tr("WRN_STUDY_LOCKED"));
return;
}
- if (!getMain()->isFromStudy()) {
- if (getMain()->addStudy())
- getMain()->setAsFromStudy(true);
- }
myInStudy = !myInStudy;
sync();
getMain()->getCanvas()->update();
+
+ if ( myInStudy ) // put values to study (supervision, supervision->dataflow, supervision->dataflow->runXXX, etc.
+ getMain()->putDataStudy( getEngine(), STUDY_PORT_OUT );
}