From ace2f4fea8ebf4cdd601f4a82714686a2e274c8c Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 17 Oct 2012 06:01:44 +0000 Subject: [PATCH] open .pro files automatically --- Common/OpenFile.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp index 722fff2cb4..a873f28141 100644 --- a/Common/OpenFile.cpp +++ b/Common/OpenFile.cpp @@ -374,6 +374,15 @@ int MergeFile(const std::string &fileName, bool warnIfMissing) status = readFile3M(fileName); } #endif +#if defined(HAVE_ONELAB) && defined(HAVE_FLTK) + else if(ext == ".pro" && opt_solver_name(0, GMSH_GET, "") == "GetDP"){ + std::vector<std::string> split = SplitFileName(fileName); + GModel::current()->setName(""); + status = MergeFile(split[0] + split[1] + ".geo"); + solver_cb(0, 0); + return status; + } +#endif #if defined(HAVE_ONELAB_METAMODEL) && defined(HAVE_FLTK) else if(ext == ".ol"){ // TODO: allow passing action to metamodel from command line -- GitLab