[Pkg-owncloud-commits] [owncloud-client] 72/159: PropfindJob: fix xml parsing
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri May 1 13:05:24 UTC 2015
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 1617c9d482527c6f38f1567a31e5d5d766451f5e
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Tue Apr 7 10:35:27 2015 +0200
PropfindJob: fix xml parsing
It would only find the first property
---
src/libsync/networkjobs.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp
index d74c6cf..5bd4144 100644
--- a/src/libsync/networkjobs.cpp
+++ b/src/libsync/networkjobs.cpp
@@ -647,8 +647,9 @@ bool PropfindJob::finished()
if (type == QXmlStreamReader::StartElement) {
if (!curElement.isEmpty() && curElement.top() == QLatin1String("prop")) {
items.insert(reader.name().toString(), reader.readElementText());
+ } else {
+ curElement.push(reader.name().toString());
}
- curElement.push(reader.name().toString());
}
if (type == QXmlStreamReader::EndElement) {
if(curElement.top() == reader.name()) {
--
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