Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix (?) crash when filtering layer with attachment field
Fixes #21775
  • Loading branch information
nyalldawson committed May 28, 2019
1 parent 096cb4c commit 26f8815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsexternalresourcewidget.cpp
Expand Up @@ -230,7 +230,7 @@ void QgsExternalResourceWidget::loadDocument( const QString &path )
#ifdef WITH_QTWEBKIT
if ( mDocumentViewerContent == Web )
{
mWebView->setUrl( QUrl::fromEncoded( resolvedPath.toUtf8() ) );
mWebView->load( QUrl::fromEncoded( resolvedPath.toUtf8() ) );
mWebView->page()->settings()->setAttribute( QWebSettings::LocalStorageEnabled, true );
}
#endif
Expand Down

0 comments on commit 26f8815

Please sign in to comment.