[Pkg-owncloud-commits] [owncloud-client] 52/70: Better debugability.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat May 17 20:01:30 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 ef44a59bed7cb96b0f5a054a8fb012792eb73786
Author: Klaas Freitag <freitag at owncloud.com>
Date: Thu May 15 09:45:26 2014 +0200
Better debugability.
---
src/mirall/owncloudsetupwizard.cpp | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/mirall/owncloudsetupwizard.cpp b/src/mirall/owncloudsetupwizard.cpp
index 49818ce..a7d866b 100644
--- a/src/mirall/owncloudsetupwizard.cpp
+++ b/src/mirall/owncloudsetupwizard.cpp
@@ -187,7 +187,8 @@ void OwncloudSetupWizard::slotNoOwnCloudFoundAuthTimeout(const QUrl&url)
void OwncloudSetupWizard::slotConnectToOCUrl( const QString& url )
{
qDebug() << "Connect to url: " << url;
- _ocWizard->account()->setCredentials(_ocWizard->getCredentials());
+ AbstractCredentials *creds = _ocWizard->getCredentials();
+ _ocWizard->account()->setCredentials(creds);
_ocWizard->setField(QLatin1String("OCUrl"), url );
_ocWizard->appendToConfigurationLog(tr("Trying to connect to %1 at %2...")
.arg( Theme::instance()->appNameGUI() ).arg(url) );
@@ -197,7 +198,9 @@ void OwncloudSetupWizard::slotConnectToOCUrl( const QString& url )
void OwncloudSetupWizard::testOwnCloudConnect()
{
- ValidateDavAuthJob *job = new ValidateDavAuthJob(_ocWizard->account(), this);
+ Account *account = _ocWizard->account();
+
+ ValidateDavAuthJob *job = new ValidateDavAuthJob(account, this);
job->setIgnoreCredentialFailure(true);
connect(job, SIGNAL(authResult(QNetworkReply*)), SLOT(slotConnectionCheck(QNetworkReply*)));
job->start();
@@ -483,7 +486,8 @@ ValidateDavAuthJob::ValidateDavAuthJob(Account *account, QObject *parent)
void ValidateDavAuthJob::start()
{
- QNetworkReply *reply = getRequest(account()->davPath());
+ QString p = account()->davPath();
+ QNetworkReply *reply = getRequest(p);
setReply(reply);
setupConnections(reply);
AbstractNetworkJob::start();
--
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