From: eap Date: Wed, 15 Jun 2005 05:54:44 +0000 (+0000) Subject: PAL9165. emit message only if no valid ImportExport file found X-Git-Tag: T3_0_0_a4~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=873285da368b0b5722b30905818d3dbea59a6695;p=modules%2Fgeom.git PAL9165. emit message only if no valid ImportExport file found --- diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index bbf4e9980..11ec04762 100644 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -367,11 +367,14 @@ Standard_Boolean GEOMImpl_IInsertOperations::InitResMgr() #else aUserResDir += "/.salome/resources"; #endif - myResMgr = new Resource_Manager ("ImportExport", aResDir, aUserResDir, Standard_True); - } + myResMgr = new Resource_Manager ("ImportExport", aResDir, aUserResDir, Standard_False); - if (myResMgr->Find("Import") || myResMgr->Find("Export")) - return Standard_True; + if (!myResMgr->Find("Import") && !myResMgr->Find("Export")) { + // instead of complains in Resource_Manager + INFOS("No valid file \"ImportExport\" found in " << aResDir.ToCString() << + " and in " << aUserResDir.ToCString() ); + } + } - return Standard_False; + return ( myResMgr->Find("Import") || myResMgr->Find("Export") ); }