Skip to content
Snippets Groups Projects
Commit 33c50c8d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

revert Francois' commit for setChanged: it breaks the original design logic

parent 2306ae26
No related branches found
No related tags found
No related merge requests found
...@@ -315,7 +315,6 @@ namespace onelab{ ...@@ -315,7 +315,6 @@ namespace onelab{
addClients(p.getClients()); // complete the list of clients addClients(p.getClients()); // complete the list of clients
setLabel(p.getLabel()); setLabel(p.getLabel());
setHelp(p.getHelp()); setHelp(p.getHelp());
setChanged(p.getChanged());
setVisible(p.getVisible()); setVisible(p.getVisible());
setReadOnly(p.getReadOnly()); setReadOnly(p.getReadOnly());
setAttributes(p.getAttributes()); setAttributes(p.getAttributes());
...@@ -391,7 +390,6 @@ namespace onelab{ ...@@ -391,7 +390,6 @@ namespace onelab{
addClients(p.getClients()); addClients(p.getClients());
setLabel(p.getLabel()); setLabel(p.getLabel());
setHelp(p.getHelp()); setHelp(p.getHelp());
setChanged(p.getChanged());
setVisible(p.getVisible()); setVisible(p.getVisible());
setReadOnly(p.getReadOnly()); setReadOnly(p.getReadOnly());
setAttributes(p.getAttributes()); setAttributes(p.getAttributes());
...@@ -466,7 +464,6 @@ namespace onelab{ ...@@ -466,7 +464,6 @@ namespace onelab{
addClients(p.getClients()); addClients(p.getClients());
setLabel(p.getLabel()); setLabel(p.getLabel());
setHelp(p.getHelp()); setHelp(p.getHelp());
setChanged(p.getChanged());
setAttributes(p.getAttributes()); setAttributes(p.getAttributes());
if(p.getValue() != getValue()){ if(p.getValue() != getValue()){
setValue(p.getValue()); setValue(p.getValue());
...@@ -547,7 +544,6 @@ namespace onelab{ ...@@ -547,7 +544,6 @@ namespace onelab{
addClients(p.getClients()); addClients(p.getClients());
setLabel(p.getLabel()); setLabel(p.getLabel());
setHelp(p.getHelp()); setHelp(p.getHelp());
setChanged(p.getChanged());
setAttributes(p.getAttributes()); setAttributes(p.getAttributes());
if(p.getValue() != getValue()){ if(p.getValue() != getValue()){
setValue(p.getValue()); setValue(p.getValue());
...@@ -703,9 +699,10 @@ namespace onelab{ ...@@ -703,9 +699,10 @@ namespace onelab{
std::set<parameter*> ps; std::set<parameter*> ps;
_getAllParameters(ps); _getAllParameters(ps);
for(std::set<parameter*>::iterator it = ps.begin(); it != ps.end(); it++){ for(std::set<parameter*>::iterator it = ps.begin(); it != ps.end(); it++){
if((client.empty() || (*it)->hasClient(client)) && (*it)->getChanged()) if((client.empty() || (*it)->hasClient(client)) && (*it)->getChanged()){
return true; return true;
} }
}
return false; return false;
} }
// set the changed flag for all parameters (optionnally only affect those // set the changed flag for all parameters (optionnally only affect those
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment