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
No related branches found
No related tags found
No related merge requests found
......@@ -632,6 +632,11 @@ void onelab_cb(Fl_Widget *w, void *data)
return;
}
if(FlGui::instance()->onelab->isBusy()){
Msg::Info("I'm busy! Ask me that later...");
return;
}
if(action == "load"){
std::string db = SplitFileName(GModel::current()->getFileName())[0] + "onelab.db";
if(fileChooser(FILE_CHOOSER_SINGLE, "Load", "*.db", db.c_str()))
......@@ -669,11 +674,6 @@ void onelab_cb(Fl_Widget *w, void *data)
action = "check";
}
if(FlGui::instance()->onelab->isBusy()){
Msg::Info("I'm busy! Ask me that later...");
return;
}
Msg::ResetErrorCounter();
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