Also allow sharing if we only sync a part

Esse commit está contido em:
Roeland Jago Douma
2014-12-28 20:10:46 +01:00
commit ee2e6e5dce
+2 -1
Ver Arquivo
@@ -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);
}
}