From 130d1c1c83bbdb366feb676022d63d57f96047c3 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 24 Jan 2012 17:15:22 +0000 Subject: [PATCH] --- Fltk/onelabWindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp index cb097d651a..5cd277d32b 100644 --- a/Fltk/onelabWindow.cpp +++ b/Fltk/onelabWindow.cpp @@ -603,12 +603,10 @@ void onelab_cb(Fl_Widget *w, void *data) std::string action((const char*)data); if(action == "refresh"){ - static bool recurse = false; - if(recurse) return; - recurse = true; + FlGui::instance()->onelab->setButtonMode("", "stop"); updateOnelabGraphs(); FlGui::instance()->onelab->rebuildTree(); - recurse = false; + FlGui::instance()->onelab->setButtonMode("refresh", "stop"); return; } -- GitLab