Skip to content

Commit

Permalink
make welcomepage proxy aware
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 18, 2015
1 parent 065bb10 commit 8b9e0b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/qgswelcomepage.cpp
Expand Up @@ -18,6 +18,7 @@
#include "qgisapp.h"
#include "qgsversioninfo.h"
#include "qgsapplication.h"
#include "qgsnetworkaccessmanager.h"

#include <QHBoxLayout>
#include <QVBoxLayout>
Expand Down Expand Up @@ -56,7 +57,9 @@ QgsWelcomePage::QgsWelcomePage( QWidget* parent )
QLabel* whatsNewTitle = new QLabel( QString( "<h1>%1</h1>" ).arg( tr( "QGIS News" ) ) );
whatsNewContainer->layout()->addWidget( whatsNewTitle );

QgsWebView* whatsNewPage = new QgsWebView();
QgsWebView *whatsNewPage = new QgsWebView();
whatsNewPage->page()->setNetworkAccessManager( QgsNetworkAccessManager::instance() );

whatsNewPage->setUrl( QUrl::fromLocalFile( QgsApplication::whatsNewFilePath() ) );
whatsNewPage->page()->setLinkDelegationPolicy( QWebPage::DelegateAllLinks );
whatsNewPage->setContextMenuPolicy( Qt::NoContextMenu );
Expand Down

0 comments on commit 8b9e0b6

Please sign in to comment.