From d72c02737649d8e478084d3f518cca0e3b58e0cd Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 23 Jun 2005 13:16:42 +0000 Subject: [PATCH] bug 9264. enable reading plugins xml files --- src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); -- 2.30.2