We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c3176 commit cc4cee8Copy full SHA for cc4cee8
src/gui/qgsfilewidget.cpp
@@ -283,7 +283,6 @@ void QgsFileWidget::openFileDialog()
283
if ( mStorageMode != GetMultipleFiles )
284
{
285
fileName = relativePath( fileName, true );
286
- // Keep the new value
287
setFilePath( fileName );
288
}
289
else
@@ -292,7 +291,14 @@ void QgsFileWidget::openFileDialog()
292
291
293
fileNames.replace( i, relativePath( fileNames.at( i ), true ) );
294
295
- setFilePath( QStringLiteral( "\"%1\"" ).arg( fileNames.join( "\" \"" ) ) );
+ if ( fileNames.length() > 1 )
+ {
296
+ setFilePath( QStringLiteral( "\"%1\"" ).arg( fileNames.join( "\" \"" ) ) );
297
+ }
298
+ else
299
300
+ setFilePath( fileNames.first( ) );
301
302
303
304
0 commit comments