mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
bug 9264. enable reading plugins xml files
This commit is contained in:
parent
bcbf3a1093
commit
d72c027376
@ -142,9 +142,10 @@ namespace SMESH{
|
|||||||
QString HypsXml = HypsXmlList[ i ];
|
QString HypsXml = HypsXmlList[ i ];
|
||||||
|
|
||||||
// Find full path to the resource XML file
|
// Find full path to the resource XML file
|
||||||
QString xmlFile = HypsXml + ".xml";
|
QString xmlFile = resMgr->path("resources", "SMESH", HypsXml + ".xml");
|
||||||
xmlFile = resMgr->path("resources", "SMESH", xmlFile);
|
if ( xmlFile.isEmpty() ) // try PLUGIN resources
|
||||||
|
xmlFile = resMgr->path("resources", HypsXml, HypsXml + ".xml");
|
||||||
|
|
||||||
QFile file (xmlFile);
|
QFile file (xmlFile);
|
||||||
if (file.exists() && file.open(IO_ReadOnly)) {
|
if (file.exists() && file.open(IO_ReadOnly)) {
|
||||||
file.close();
|
file.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user