[Pkg-owncloud-commits] [owncloud-client] 16/333: OS X: Workaround Qt5 QNAM bug

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 104cf680a60d51587fe44392351070453b18778d
Author: Markus Goetz <markus at woboq.com>
Date:   Wed Feb 5 16:27:57 2014 +0100

    OS X: Workaround Qt5 QNAM bug
    
    This made the sign out/sign in handling not work.
---
 src/mirall/mirallaccessmanager.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/mirall/mirallaccessmanager.cpp b/src/mirall/mirallaccessmanager.cpp
index f4c0e5e..9bf77ab 100644
--- a/src/mirall/mirallaccessmanager.cpp
+++ b/src/mirall/mirallaccessmanager.cpp
@@ -12,6 +12,7 @@
  */
 
 #include <QNetworkRequest>
+#include <QNetworkProxy>
 
 #include "mirall/mirallaccessmanager.h"
 #include "mirall/utility.h"
@@ -22,6 +23,12 @@ namespace Mirall
 MirallAccessManager::MirallAccessManager(QObject* parent)
     : QNetworkAccessManager (parent)
 {
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+    // FIXME Workaround http://stackoverflow.com/a/15707366/2941 https://bugreports.qt-project.org/browse/QTBUG-30434
+    QNetworkProxy proxy = this->proxy();
+    proxy.setHostName(" ");
+    setProxy(proxy);
+#endif
 }
 
 QNetworkReply* MirallAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list