From dd029fd126232b3868557d75f6afa49842a3b6ec Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 13 Jan 2012 07:40:40 +0000 Subject: [PATCH] fine tuning --- Fltk/onelabWindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp index 320e732a75..3f86d90740 100644 --- a/Fltk/onelabWindow.cpp +++ b/Fltk/onelabWindow.cpp @@ -617,14 +617,18 @@ void onelab_cb(Fl_Widget *w, void *data) } if(action == "reset"){ - // clear everything except model names + // clear everything except model names and command line setup std::vector<onelab::string> modelNames; + std::vector<onelab::number> useCommandLines; for(onelab::server::citer it = onelab::server::instance()->firstClient(); it != onelab::server::instance()->lastClient(); it++){ onelab::client *c = it->second; std::vector<onelab::string> ps; c->get(ps, c->getName() + "/1ModelName"); if(ps.size()) modelNames.push_back(ps[0]); + std::vector<onelab::number> ps2; + c->get(ps2, c->getName() + "/UseCommandLine"); + if(ps2.size()) useCommandLines.push_back(ps2[0]); } onelab::server::instance()->clear(); if(onelab::server::instance()->findClient("Gmsh") != @@ -632,6 +636,8 @@ void onelab_cb(Fl_Widget *w, void *data) geometry_reload_cb(0, 0); for(unsigned int i = 0; i < modelNames.size(); i++) onelab::server::instance()->set(modelNames[i]); + for(unsigned int i = 0; i < useCommandLines.size(); i++) + onelab::server::instance()->set(useCommandLines[i]); action = "check"; } -- GitLab