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

don't "check" if no solver is requested (useful for "pure gmsh" use)

parent e34780e7
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,12 @@
#include <FL/Fl.H>
#include "GmshConfig.h"
#if !defined(HAVE_NO_STDINT_H)
#include <stdint.h>
#elif defined(HAVE_NO_INTPTR_T)
typedef unsigned long intptr_t;
#endif
#include "GmshMessage.h"
#if defined(HAVE_ONELAB)
......@@ -461,9 +467,7 @@ void onelab_cb(Fl_Widget *w, void *data)
std::string action((const char*)data);
if(action == "refresh"){
updateGraphs();
FlGui::instance()->onelab->rebuildTree();
return;
// nothing to do
}
if(action == "stop"){
......@@ -788,11 +792,12 @@ static bool getFlColor(const std::string &str, Fl_Color &c)
template<class T>
static void autoCheck(const T &pold, const T &pnew, bool force=false)
{
if(!CTX::instance()->solver.autoCheck && pnew.getAttribute("AutoCheck") != "1")
return;
if((CTX::instance()->solver.autoCheck && pnew.getAttribute("AutoCheck") != "0") ||
pnew.getAttribute("AutoCheck") == "1"){
if(force || pold.getValue() != pnew.getValue())
onelab_cb(0, (void*)"check");
}
}
template<class T>
void onelabWindow::_addParameter(T &p)
......@@ -1379,7 +1384,7 @@ void solver_cb(Fl_Widget *w, void *data)
if(FlGui::instance()->onelab->isBusy())
FlGui::instance()->onelab->show();
else
onelab_cb(0, (void*)"check");
onelab_cb(0, (num >= 0) ? (void*)"check" : (void*)"refresh");
}
void flgui_wait_cb(double time)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment