mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-18 12:40:34 +05:00
Fix for PAL6826.
This commit is contained in:
parent
c759def283
commit
67100410d9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user