Skip to content
Permalink
Browse files

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

  • Loading branch information
nirvn committed Nov 16, 2020
1 parent 6cbbf5e commit 61c9a9d8a65ffaceb06375b7e720d2078349e7a0
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 ) co

QString QgsDelimitedTextProviderMetadata::encodeUri( const QVariantMap &parts ) const
{
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 61c9a9d

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