Skip to content
Permalink
Browse files

Do not quote when single raster file is selected

  • Loading branch information
elpaso committed Aug 24, 2017
1 parent 81c3176 commit cc4cee8f9155f88a420a08a608212b92d86ec224
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/gui/qgsfilewidget.cpp
@@ -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( ) );
}
}
}

0 comments on commit cc4cee8

Please sign in to comment.
You can’t perform that action at this time.