if ( !caption.isEmpty() )
fd->setCaption( caption );
- if ( showCurrentDirInitially && SUIT_FileDlg::getLastVisitedPath().isEmpty() )
- fd->setSelection( QDir::currentDirPath() );
- else if ( !initial.isEmpty() )
+ if ( !initial.isEmpty() )
fd->setSelection( initial );
+
+ if ( showCurrentDirInitially && SUIT_FileDlg::getLastVisitedPath().isEmpty() )
+ fd->setDir( QDir::currentDirPath() );
fd->setFilters( filters );
QString fileType;
QString file = getFileName(app->desktop(), QString( IObject->getName() ), aMap, filters,
- tr("GEOM_MEN_EXPORT"), false, fileType);
+ tr("GEOM_MEN_EXPORT"), false, fileType, true);
// User has pressed "Cancel" --> stop the operation
if ( file.isEmpty() || fileType.isEmpty() )