Proxy: Register meta type #3170

This commit is contained in:
Markus Goetz 2015-04-29 14:54:08 +02:00
parent 356fa737c5
commit 4700c604b1

View file

@ -163,6 +163,7 @@ SystemProxyRunnable::SystemProxyRunnable(const QUrl &url) : QObject(), QRunnable
void SystemProxyRunnable::run() void SystemProxyRunnable::run()
{ {
qDebug() << Q_FUNC_INFO << "Starting system proxy lookup"; qDebug() << Q_FUNC_INFO << "Starting system proxy lookup";
qRegisterMetaType<QNetworkProxy>("QNetworkProxy");
QList<QNetworkProxy> proxies = QNetworkProxyFactory::systemProxyForQuery(QNetworkProxyQuery(_url)); QList<QNetworkProxy> proxies = QNetworkProxyFactory::systemProxyForQuery(QNetworkProxyQuery(_url));
if (proxies.isEmpty()) { if (proxies.isEmpty()) {