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

when opening solver files (through file->open or e.g. in the finder) we now...

when opening solver files (through file->open or e.g. in the finder) we now perform onelab_cb(reset); I think this is the right(TM) thing to do
parent c67d60cf
No related branches found
No related tags found
No related merge requests found
...@@ -681,6 +681,8 @@ void OpenProjectMacFinder(const char *fileName) ...@@ -681,6 +681,8 @@ void OpenProjectMacFinder(const char *fileName)
// Gmsh is running // Gmsh is running
OpenProject(fileName); OpenProject(fileName);
drawContext::global()->draw(); drawContext::global()->draw();
if(CTX::instance()->launchSolverAtStartup >= 0)
solver_cb(0, (void*)CTX::instance()->launchSolverAtStartup);
} }
#endif #endif
} }
...@@ -1758,8 +1758,14 @@ void solver_cb(Fl_Widget *w, void *data) ...@@ -1758,8 +1758,14 @@ void solver_cb(Fl_Widget *w, void *data)
if(FlGui::instance()->onelab->isBusy()) if(FlGui::instance()->onelab->isBusy())
FlGui::instance()->onelab->show(); FlGui::instance()->onelab->show();
else else{
onelab_cb(0, (num >= 0) ? (void*)"check" : (void*)"refresh"); if(CTX::instance()->launchSolverAtStartup >= 0)
onelab_cb(0, (void*)"reset");
else if(num >= 0)
onelab_cb(0, (void*)"check");
else
onelab_cb(0, (void*)"refresh");
}
CTX::instance()->launchSolverAtStartup = -1; CTX::instance()->launchSolverAtStartup = -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment