Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-02-16 13:10:47 +0300
committerHannah von Reth <vonreth@kde.org>2022-02-18 12:21:15 +0300
commit2a72f0eb1b4a48824e9a2d68a806ec0bf6d5441f (patch)
tree4c155b7b2d33871f7fd125686b67811d82ab7869 /src/gui/quotainfo.cpp
parent2b446390d4800c9e245fcd2f6e6eed79137a9f0d (diff)
Use a per folder davUrl
Diffstat (limited to 'src/gui/quotainfo.cpp')
-rw-r--r--src/gui/quotainfo.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/quotainfo.cpp b/src/gui/quotainfo.cpp
index d573e7ab4..0007469f9 100644
--- a/src/gui/quotainfo.cpp
+++ b/src/gui/quotainfo.cpp
@@ -98,10 +98,9 @@ void QuotaInfo::slotCheckQuota()
_job->deleteLater();
}
- AccountPtr account = _accountState->account();
- _job = new PropfindJob(account, quotaBaseFolder(), this);
- _job->setProperties(QList<QByteArray>() << "quota-available-bytes"
- << "quota-used-bytes");
+ const AccountPtr &account = _accountState->account();
+ _job = new PropfindJob(account, account->davUrl(), quotaBaseFolder(), this);
+ _job->setProperties({ QByteArrayLiteral("quota-available-bytes"), QByteArrayLiteral("quota-used-bytes") });
connect(_job.data(), &PropfindJob::result, this, &QuotaInfo::slotUpdateLastQuota);
connect(_job.data(), &AbstractNetworkJob::networkError, this, &QuotaInfo::slotRequestFailed);
_job->start();