Proxy: Register meta type #3170
authorMarkus Goetz <markus@woboq.com>
Wed, 29 Apr 2015 12:54:08 +0000 (14:54 +0200)
committerMarkus Goetz <markus@woboq.com>
Wed, 29 Apr 2015 12:54:08 +0000 (14:54 +0200)
src/libsync/clientproxy.cpp

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