mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-23 14:26:12 +03:00
use the platform-specific proxy settings
This commit is contained in:
parent
90c8221cc0
commit
6197235fec
@ -19,6 +19,7 @@
|
||||
#include <QSettings>
|
||||
#include <QTimer>
|
||||
#include <QWebSettings>
|
||||
#include <QNetworkProxyFactory>
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkReply>
|
||||
#include <QAbstractNetworkCache>
|
||||
@ -50,6 +51,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
ui(new Ui::MainWindow),
|
||||
settings("Zeal", "Zeal")
|
||||
{
|
||||
// Use the platform-specific proxy settings
|
||||
QNetworkProxyFactory::setUseSystemConfiguration(true);
|
||||
|
||||
// server for detecting already running instances
|
||||
localServer = new QLocalServer(this);
|
||||
connect(localServer, &QLocalServer::newConnection, [&]() {
|
||||
|
Loading…
Reference in New Issue
Block a user