From 82e30611146b681f51c43f690d7b5e068e888ee4 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 17 Oct 2011 15:06:59 +0000 Subject: [PATCH] onelab --- Fltk/onelabWindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp index 58ae8ba2db..ac80ac1e7b 100644 --- a/Fltk/onelabWindow.cpp +++ b/Fltk/onelabWindow.cpp @@ -269,9 +269,10 @@ void onelab_cb(Fl_Widget *w, void *data) c->run(what); } else if(action == "compute"){ - // FIXME we should define a string (invisible param) in the db - // that stores this information - if(c->getName() == "GetDP") what += " -solve -pos"; + // get command line from the server + std::vector<onelab::string> ps; + onelab::server::instance()->get(ps, c->getName() + "/9Compute"); + if(ps.size()) what += " " + ps[0].getValue(); c->run(what); } } -- GitLab