From b7d772d17a8158651c13cb1f20488f20a1878afc Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 23 Jan 2013 11:12:56 +0000
Subject: [PATCH] better title for exe chooser

---
 Fltk/onelabGroup.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Fltk/onelabGroup.cpp b/Fltk/onelabGroup.cpp
index 7585ea868c..a22bd02534 100644
--- a/Fltk/onelabGroup.cpp
+++ b/Fltk/onelabGroup.cpp
@@ -660,7 +660,8 @@ static void onelab_choose_executable_cb(Fl_Widget *w, void *data)
   const char *old = 0;
   if(!c->getExecutable().empty()) old = c->getExecutable().c_str();
 
-  if(fileChooser(FILE_CHOOSER_SINGLE, "Choose executable", pattern.c_str(), old)){
+  std::string title = "Choose location of " + c->getName() + " executable";
+  if(fileChooser(FILE_CHOOSER_SINGLE, title.c_str(), pattern.c_str(), old)){
     std::string exe = fileChooserGetName(1);
     c->setExecutable(exe);
     if(c->getIndex() >= 0 && c->getIndex() < 5)
-- 
GitLab