From 5adb8aa4944598a496281ace7a590174174abc21 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 3 Jan 2012 10:52:56 +0000 Subject: [PATCH] --- Fltk/onelabWindow.cpp | 5 ++++- doc/texinfo/gmsh.texi | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp index 3aada903e0..5ce7ab0073 100644 --- a/Fltk/onelabWindow.cpp +++ b/Fltk/onelabWindow.cpp @@ -722,7 +722,10 @@ static void onelab_choose_executable_cb(Fl_Widget *w, void *data) #if defined(WIN32) pattern += ".exe"; #endif - if(fileChooser(FILE_CHOOSER_SINGLE, "Choose executable", pattern.c_str())){ + const char *old = 0; + if(!c->getCommandLine().empty()) old = c->getCommandLine().c_str(); + + if(fileChooser(FILE_CHOOSER_SINGLE, "Choose executable", pattern.c_str(), old)){ std::string exe = fileChooserGetName(1); c->setCommandLine(exe); if(c->getIndex() >= 0 && c->getIndex() < 5) diff --git a/doc/texinfo/gmsh.texi b/doc/texinfo/gmsh.texi index 4881271a3d..0778673f22 100644 --- a/doc/texinfo/gmsh.texi +++ b/doc/texinfo/gmsh.texi @@ -3041,9 +3041,10 @@ solver module, you need to specify its name (@code{Solver.Name0}, @ref{Solver options list}). The client-server API for the solver interface is defined in the -@file{onelab.h} header. See the sources of GetDP -(@url{http://geuz.org/getdp}, for an example on how to use the ONELAB -programming interface. +@file{onelab.h} header. See @file{utils/solvers/c++/solver.cpp} for a +simple example on how to use the ONELAB programming interface. See the +sources of GetDP (@url{http://geuz.org/getdp} for a more comprehensive +example. @menu * Solver options:: -- GitLab