From ec2ca7b772a2842477445f25452002c40510f115 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 25 Sep 2012 16:22:03 +0000
Subject: [PATCH] temp fix for onelab initialization

---
 Common/GmshMessage.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp
index 152f0a2fda..c278761dda 100644
--- a/Common/GmshMessage.cpp
+++ b/Common/GmshMessage.cpp
@@ -637,8 +637,10 @@ void Msg::InitializeOnelab(const std::string &name, const std::string &sockname)
   if(_onelabClient) delete _onelabClient;
   if(sockname.empty()){
     _onelabClient = new onelab::localClient("Gmsh");
-    if(!_onelabClient->fromFile(name))
-      Error("Error loading onelab database '%s'", name.c_str());
+    if(name != "Gmsh"){ // load db from file:
+      if(!_onelabClient->fromFile(name))
+        Error("Error loading onelab database '%s'", name.c_str());
+    }
   }
   else{
     onelab::remoteNetworkClient *c = new onelab::remoteNetworkClient(name, sockname);
-- 
GitLab