Skip to content

Commit

Permalink
Do not quote when single raster file is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Aug 24, 2017
1 parent 81c3176 commit cc4cee8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/gui/qgsfilewidget.cpp
Expand Up @@ -283,7 +283,6 @@ void QgsFileWidget::openFileDialog()
if ( mStorageMode != GetMultipleFiles )
{
fileName = relativePath( fileName, true );
// Keep the new value
setFilePath( fileName );
}
else
Expand All @@ -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( ) );
}
}
}

Expand Down

0 comments on commit cc4cee8

Please sign in to comment.