File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 18
18
#include " qgisapp.h"
19
19
#include " qgsversioninfo.h"
20
20
#include " qgsapplication.h"
21
+ #include " qgsnetworkaccessmanager.h"
21
22
22
23
#include < QHBoxLayout>
23
24
#include < QVBoxLayout>
@@ -56,7 +57,9 @@ QgsWelcomePage::QgsWelcomePage( QWidget* parent )
56
57
QLabel* whatsNewTitle = new QLabel ( QString ( " <h1>%1</h1>" ).arg ( tr ( " QGIS News" ) ) );
57
58
whatsNewContainer->layout ()->addWidget ( whatsNewTitle );
58
59
59
- QgsWebView* whatsNewPage = new QgsWebView ();
60
+ QgsWebView *whatsNewPage = new QgsWebView ();
61
+ whatsNewPage->page ()->setNetworkAccessManager ( QgsNetworkAccessManager::instance () );
62
+
60
63
whatsNewPage->setUrl ( QUrl::fromLocalFile ( QgsApplication::whatsNewFilePath () ) );
61
64
whatsNewPage->page ()->setLinkDelegationPolicy ( QWebPage::DelegateAllLinks );
62
65
whatsNewPage->setContextMenuPolicy ( Qt::NoContextMenu );
You can’t perform that action at this time.
0 commit comments