Skip to content
Snippets Groups Projects
Commit 81261931 authored by Francois Henrotte's avatar Francois Henrotte
Browse files

flag readonly

parent 4ce617f1
No related branches found
No related tags found
No related merge requests found
...@@ -649,8 +649,11 @@ void Msg::ExchangeOnelabParameter(const std::string &key, ...@@ -649,8 +649,11 @@ void Msg::ExchangeOnelabParameter(const std::string &key,
std::vector<onelab::number> ps; std::vector<onelab::number> ps;
_onelabClient->get(ps, name); _onelabClient->get(ps, name);
bool noRange = true, noChoices = true, noLoop = true, noGraph = true; bool noRange = true, noChoices = true, noLoop = true, noGraph = true;
if(ps.size()){ // use value from server if(ps.size()){
val[0] = ps[0].getValue(); if(ps[0].getReadOnly())
ps[0].setValue(val[0]); // use value from gmsh
else
val[0] = ps[0].getValue(); // use value from server
// keep track of these attributes, which can be changed server-side // keep track of these attributes, which can be changed server-side
if(ps[0].getMin() != -onelab::parameter::maxNumber() || if(ps[0].getMin() != -onelab::parameter::maxNumber() ||
ps[0].getMax() != onelab::parameter::maxNumber() || ps[0].getMax() != onelab::parameter::maxNumber() ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment