]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Fix the Qt4 build
authorJocelyn Turcotte <jturcotte@woboq.com>
Tue, 21 Jun 2016 10:03:52 +0000 (12:03 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 21 Jun 2016 10:04:26 +0000 (12:04 +0200)
QSharedPointer::reset doesn't exist in Qt4.

src/libsync/account.cpp

index 99b1d5f92baf04b3af350628e2d90744b49daa59..510dfd3aa8112db89aec9b109460897f17df10cb 100644 (file)
@@ -131,7 +131,7 @@ void Account::setCredentials(AbstractCredentials *cred)
         jar = _am->cookieJar();
         jar->setParent(0);
 
-        _am.reset();
+        _am = QSharedPointer<QNetworkAccessManager>();
     }
 
     // The order for these two is important! Reading the credential's