Also allow sharing if we only sync a part

This commit is contained in:
Roeland Jago Douma 2014-12-28 20:10:46 +01:00
parent facb6b2e81
commit ee2e6e5dce

View File

@ -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);
}
}