From ee2e6e5dce6be2caa0f4d3de72fc4bbddaef3d74 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 28 Dec 2014 20:10:46 +0100 Subject: [PATCH] Also allow sharing if we only sync a part --- src/gui/socketapi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index 721c7941bd..d0059df5de 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -421,7 +421,8 @@ void SocketApi::command_SHARE(const QString& argument, SocketType* socket) QString message = QLatin1String("SHARE:OK:")+QDir::toNativeSeparators(argument); sendMessage(socket, message); QString folderForPath = shareFolder->path(); - emit shareCommandReceived(argument.right(argument.count()-folderForPath.count()+1)); + QString path = shareFolder->remotePath() + argument.right(argument.count()-folderForPath.count()+1); + emit shareCommandReceived(path); } }