diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-02-16 13:10:47 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-02-18 12:21:15 +0300 |
commit | 2a72f0eb1b4a48824e9a2d68a806ec0bf6d5441f (patch) | |
tree | 4c155b7b2d33871f7fd125686b67811d82ab7869 /src/gui/quotainfo.cpp | |
parent | 2b446390d4800c9e245fcd2f6e6eed79137a9f0d (diff) |
Use a per folder davUrl
Diffstat (limited to 'src/gui/quotainfo.cpp')
-rw-r--r-- | src/gui/quotainfo.cpp | 7 |
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(); |