From 77c708e1ef796c8209c9d3bf5d5fcdffd986b8ae Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 7 Nov 2012 10:59:16 +0000
Subject: [PATCH] show Run button as soon as some number parameters are in the
 db

---
 Fltk/graphicWindow.cpp | 2 +-
 Fltk/onelabGroup.cpp   | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp
index b12a1dd446..efd29ab120 100644
--- a/Fltk/graphicWindow.cpp
+++ b/Fltk/graphicWindow.cpp
@@ -2822,7 +2822,7 @@ graphicWindow::graphicWindow(bool main, int numTiles) : _autoScrollMessages(true
   minHeight = 100;
   win->size_range(minWidth, minHeight);
 
-  // tiled windows (opengl, messages, menu)
+  // tiled windows (menu tree, opengl, messages)
   tile = new Fl_Tile(0, mh, glwidth + twidth, glheight + mheight);
 
   int w2 = glwidth / 2, h2 = glheight / 2;
diff --git a/Fltk/onelabGroup.cpp b/Fltk/onelabGroup.cpp
index 0d82e89a99..bf9c56fca3 100644
--- a/Fltk/onelabGroup.cpp
+++ b/Fltk/onelabGroup.cpp
@@ -1246,7 +1246,10 @@ void onelabGroup::setButtonVisibility()
   else
     _butt[0]->hide();
 
-  if(onelab::server::instance()->getNumClients() > 1)
+  std::vector<onelab::number> numbers;
+  onelab::server::instance()->get(numbers);
+
+  if(onelab::server::instance()->getNumClients() > 1 || numbers.size())
     _butt[1]->show();
   else
     _butt[1]->hide();
-- 
GitLab