[Pkg-owncloud-commits] [owncloud-client] 64/211: socketapi: if the filename is empty, it's actually /

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:27 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 561e3c780d48ac31ccb4fc26090211bc7e15b16b
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Oct 13 15:36:13 2014 +0200

    socketapi: if the filename is empty, it's actually /
---
 src/mirall/socketapi.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mirall/socketapi.cpp b/src/mirall/socketapi.cpp
index 05b70af..0dbf6f1 100644
--- a/src/mirall/socketapi.cpp
+++ b/src/mirall/socketapi.cpp
@@ -552,10 +552,11 @@ void SocketApi::command_RETRIEVE_FILE_STATUS(const QString& argument, SocketType
         DEBUG << "folder offline or not watched:" << argument;
         statusString = QLatin1String("NOP");
     } else {
-        const QString file = argument.mid(syncFolder->path().length());
-        SyncFileStatus fileStatus = SocketApiHelper::fileStatus(syncFolder, file, _excludes);
+        QString file = argument.mid(syncFolder->path().length());
+        if( file.isEmpty() ) file = QLatin1String("/");
+        SyncFileStatus fStatus = this->fileStatus(syncFolder, file, _excludes);
 
-        statusString = fileStatus.toSocketAPIString();
+        statusString = fStatus.toSocketAPIString();
     }
 
     QString message = QLatin1String("STATUS:")+statusString+QLatin1Char(':')

-- 
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