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

don't allow load or reset when onelab is busy

parent 66679638
Branches
Tags
No related merge requests found
...@@ -632,6 +632,11 @@ void onelab_cb(Fl_Widget *w, void *data) ...@@ -632,6 +632,11 @@ void onelab_cb(Fl_Widget *w, void *data)
return; return;
} }
if(FlGui::instance()->onelab->isBusy()){
Msg::Info("I'm busy! Ask me that later...");
return;
}
if(action == "load"){ if(action == "load"){
std::string db = SplitFileName(GModel::current()->getFileName())[0] + "onelab.db"; std::string db = SplitFileName(GModel::current()->getFileName())[0] + "onelab.db";
if(fileChooser(FILE_CHOOSER_SINGLE, "Load", "*.db", db.c_str())) if(fileChooser(FILE_CHOOSER_SINGLE, "Load", "*.db", db.c_str()))
...@@ -669,11 +674,6 @@ void onelab_cb(Fl_Widget *w, void *data) ...@@ -669,11 +674,6 @@ void onelab_cb(Fl_Widget *w, void *data)
action = "check"; action = "check";
} }
if(FlGui::instance()->onelab->isBusy()){
Msg::Info("I'm busy! Ask me that later...");
return;
}
Msg::ResetErrorCounter(); Msg::ResetErrorCounter();
FlGui::instance()->onelab->setButtonMode("", "stop"); FlGui::instance()->onelab->setButtonMode("", "stop");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment