Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c759def
)
Fix for PAL6826.
author
mzn
<mzn@opencascade.com>
Fri, 21 Jul 2006 10:13:59 +0000
(10:13 +0000)
committer
mzn
<mzn@opencascade.com>
Fri, 21 Jul 2006 10:13:59 +0000
(10:13 +0000)
src/GEOMToolsGUI/GEOMToolsGUI.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMToolsGUI/GEOMToolsGUI.cxx
b/src/GEOMToolsGUI/GEOMToolsGUI.cxx
index fb6a99d7dd79f97936b3cf4ad5288169319cddc5..96fe7ff019f67a35be0c8604ce36628e3a47cf5a 100644
(file)
--- a/
src/GEOMToolsGUI/GEOMToolsGUI.cxx
+++ b/
src/GEOMToolsGUI/GEOMToolsGUI.cxx
@@
-450,6
+450,17
@@
bool GEOMToolsGUI::Import()
QString fileName = getFileName(app->desktop(), "", aMap,
tr("GEOM_MEN_IMPORT"), true, fileType);
+
+ if (fileType.isEmpty() )
+ {
+ // Trying to detect file type
+ QFileInfo aFileInfo( fileName );
+ QString aPossibleType = (aFileInfo.extension(false)).upper() ;
+
+ if ( (aMap.values()).contains(aPossibleType) )
+ fileType = aPossibleType;
+ }
+
if (fileName.isEmpty() || fileType.isEmpty())
return false;