[Pkg-owncloud-commits] [owncloud-client] 194/332: SocketAPI: send the path with UPDATE_VIEW

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:06:59 UTC 2014


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 a281b36d6fe40051082d1158752af70d644795a1
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Jul 11 11:30:47 2014 +0200

    SocketAPI: send the path with UPDATE_VIEW
---
 src/mirall/socketapi.cpp | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/mirall/socketapi.cpp b/src/mirall/socketapi.cpp
index ec34e02..baac107 100644
--- a/src/mirall/socketapi.cpp
+++ b/src/mirall/socketapi.cpp
@@ -222,9 +222,17 @@ void SocketApi::slotReadSocket()
     }
 }
 
-void SocketApi::slotSyncStateChanged(const QString&)
+void SocketApi::slotSyncStateChanged(const QString& alias)
 {
-    broadcastMessage("UPDATE_VIEW");
+    QString msg = QLatin1String("UPDATE_VIEW");
+
+    Folder *f = FolderMan::instance()->folder(alias);
+    if (f) {
+        msg.append(QLatin1String(":"));
+        msg.append(QDir::cleanPath(f->path()));
+    }
+
+    broadcastMessage(msg);
 }
 
 void SocketApi::slotJobCompleted(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