Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcbf3a1
)
bug 9264. enable reading plugins xml files
author
eap
<eap@opencascade.com>
Thu, 23 Jun 2005 13:16:42 +0000
(13:16 +0000)
committer
eap
<eap@opencascade.com>
Thu, 23 Jun 2005 13:16:42 +0000
(13:16 +0000)
src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx
b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx
index 619ec75dc4b0c21cdb29596d78387a2a94e15e1f..507ac2563d7f4e738b8acb545b3515195ef38905 100644
(file)
--- 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();