[Pkg-owncloud-commits] [owncloud-client] 23/171: SocketAPI: Ensure messages are consistent #3944
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Feb 17 09:36:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.
commit f65a29df5d14132984a14fdb86b2361a0df7a941
Author: Christian Kamm <mail at ckamm.de>
Date: Thu Dec 10 10:24:31 2015 +0100
SocketAPI: Ensure messages are consistent #3944
Before we blindly broadcasted the result of a sync action. That was
often different from what a subsequent FILE_STATUS query would report.
---
src/gui/socketapi.cpp | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp
index 1f75ad5..4d0bf5f 100644
--- a/src/gui/socketapi.cpp
+++ b/src/gui/socketapi.cpp
@@ -251,13 +251,9 @@ void SocketApi::slotItemCompleted(const QString &folder, const SyncFileItem &ite
return;
}
+ auto status = this->fileStatus(f, item.destination());
const QString path = f->path() + item.destination();
-
- QString command = QLatin1String("OK");
- if (Progress::isWarningKind(item._status)) {
- command = QLatin1String("ERROR");
- }
- broadcastMessage(QLatin1String("STATUS"), path, command);
+ broadcastMessage(QLatin1String("STATUS"), path, status.toSocketAPIString());
}
void SocketApi::slotSyncItemDiscovered(const QString &folder, const SyncFileItem &item)
--
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