Skip to content

Commit cb3e909

Browse files
tudorbarascunyalldawson
authored andcommitted
Enable html5 local storage for qgsexternalresourcewidget and maptips
1 parent 934f706 commit cb3e909

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/gui/qgsexternalresourcewidget.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ void QgsExternalResourceWidget::loadDocument( const QString &path )
231231
if ( mDocumentViewerContent == Web )
232232
{
233233
mWebView->setUrl( QUrl::fromEncoded( resolvedPath.toUtf8() ) );
234+
mWebView->page()->settings()->setAttribute( QWebSettings::LocalStorageEnabled, true );
234235
}
235236
#endif
236237

src/gui/qgsmaptip.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
8282

8383
mWebView->page()->settings()->setAttribute( QWebSettings::DeveloperExtrasEnabled, true );
8484
mWebView->page()->settings()->setAttribute( QWebSettings::JavascriptEnabled, true );
85+
mWebView->page()->settings()->setAttribute( QWebSettings::LocalStorageEnabled, true );
8586

8687
// Disable scrollbars, avoid random resizing issues
8788
mWebView->page()->mainFrame()->setScrollBarPolicy( Qt::Horizontal, Qt::ScrollBarAlwaysOff );

0 commit comments

Comments
 (0)