Merge pull request #7106 from m-kuhn/encodedUrl3

Assume URL already encoded in web view widget
This commit is contained in:
Matthias Kuhn 2018-05-31 07:27:43 +02:00 committed by GitHub
commit 4752b99ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ void QgsExternalResourceWidget::loadDocument( const QString &path )
#ifdef WITH_QTWEBKIT
if ( mDocumentViewerContent == Web )
{
mWebView->setUrl( QUrl( resolvedPath ) );
mWebView->setUrl( QUrl::fromEncoded( resolvedPath.toUtf8() ) );
}
#endif