Skip to content
Permalink
Browse files

[delimitedtext] Fix broken encodeUri handling of file path on windows

  • Loading branch information
github-actions authored and nirvn committed Nov 16, 2020
1 parent 298e4b6 commit 53507b959ae2e640ab2ca0a71c277a7ffaa33d66
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
@@ -1289,7 +1289,7 @@ QVariantMap QgsDelimitedTextProviderMetadata::decodeUri( const QString &uri )

QString QgsDelimitedTextProviderMetadata::encodeUri( const QVariantMap &parts )
{
QUrl url( QStringLiteral( "file://%1" ).arg( parts.value( QStringLiteral( "path" ) ).toString() ) );
QUrl url = QUrl::fromLocalFile( parts.value( QStringLiteral( "path" ) ).toString() );
const QStringList openOptions = parts.value( QStringLiteral( "openOptions" ) ).toStringList();

QUrlQuery queryItems;

0 comments on commit 53507b9

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