mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Do not quote when single raster file is selected
This commit is contained in:
parent
81c31760db
commit
cc4cee8f91
@ -283,7 +283,6 @@ void QgsFileWidget::openFileDialog()
|
||||
if ( mStorageMode != GetMultipleFiles )
|
||||
{
|
||||
fileName = relativePath( fileName, true );
|
||||
// Keep the new value
|
||||
setFilePath( fileName );
|
||||
}
|
||||
else
|
||||
@ -292,7 +291,14 @@ void QgsFileWidget::openFileDialog()
|
||||
{
|
||||
fileNames.replace( i, relativePath( fileNames.at( i ), true ) );
|
||||
}
|
||||
setFilePath( QStringLiteral( "\"%1\"" ).arg( fileNames.join( "\" \"" ) ) );
|
||||
if ( fileNames.length() > 1 )
|
||||
{
|
||||
setFilePath( QStringLiteral( "\"%1\"" ).arg( fileNames.join( "\" \"" ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
setFilePath( fileNames.first( ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user