Selective Sync dialog: add the quota-used-bytes to the request
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 18 Aug 2015 10:25:55 +0000 (12:25 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Tue, 18 Aug 2015 10:26:52 +0000 (12:26 +0200)
Mentioned in https://github.com/owncloud/client/issues/3524#issuecomment-132144532

src/gui/selectivesyncdialog.cpp

index 251b1c1a227822456418cce90fee95b2f4ea97df..fad1b3a2e4a4a24169aed9364abb8cef6acb8ba9 100644 (file)
@@ -229,6 +229,7 @@ void SelectiveSyncTreeView::slotItemExpanded(QTreeWidgetItem *item)
         prefix = _folderPath + QLatin1Char('/');
     }
     LsColJob *job = new LsColJob(_account, prefix + dir, this);
+    job->setProperties(QList<QByteArray>() << "resourcetype" << "quota-used-bytes");
     connect(job, SIGNAL(directoryListingSubfolders(QStringList)),
             SLOT(slotUpdateDirectories(QStringList)));
     job->start();