From: eap Date: Thu, 23 Jun 2005 13:16:42 +0000 (+0000) Subject: bug 9264. enable reading plugins xml files X-Git-Tag: T3_0_0_a4~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d72c02737649d8e478084d3f518cca0e3b58e0cd;p=modules%2Fsmesh.git bug 9264. enable reading plugins xml files --- diff --git a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx index 619ec75dc..507ac2563 100644 --- a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx @@ -142,9 +142,10 @@ namespace SMESH{ QString HypsXml = HypsXmlList[ i ]; // Find full path to the resource XML file - QString xmlFile = HypsXml + ".xml"; - xmlFile = resMgr->path("resources", "SMESH", xmlFile); - + QString xmlFile = resMgr->path("resources", "SMESH", HypsXml + ".xml"); + if ( xmlFile.isEmpty() ) // try PLUGIN resources + xmlFile = resMgr->path("resources", HypsXml, HypsXml + ".xml"); + QFile file (xmlFile); if (file.exists() && file.open(IO_ReadOnly)) { file.close();