Salome HOME
projects
/
modules
/
superv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Memory Leaks
[modules/superv.git]
/
src
/
SUPERVGUI
/
SUPERVGUI_CanvasPort.cxx
diff --git
a/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx
b/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx
index e5cd95440f6780afbffd5dd032f77db7b9169ac7..1a5c30b88545e3fc83a1646b52a24d2c53379236 100644
(file)
--- a/
src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx
+++ b/
src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx
@@
-291,19
+291,19
@@
void SUPERVGUI_CanvasPortOut::toStudy()
{
Trace("SUPERVGUI_CanvasPortOut::toStudy");
{
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;
}
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();
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 );
}
}