Revert "socketapi: if the filename is empty, it's actually /"

Not needed, the socketapi checks for "".

This reverts commit 561e3c780d.
This commit is contained in:
Markus Goetz 2014-10-17 13:25:15 +02:00
parent 52a5729298
commit e5ef5f2410

View File

@ -353,11 +353,10 @@ void SocketApi::command_RETRIEVE_FILE_STATUS(const QString& argument, SocketType
DEBUG << "folder offline or not watched:" << argument;
statusString = QLatin1String("NOP");
} else {
QString file = argument.mid(syncFolder->path().length());
if( file.isEmpty() ) file = QLatin1String("/");
SyncFileStatus fStatus = this->fileStatus(syncFolder, file, _excludes);
const QString file = argument.mid(syncFolder->path().length());
SyncFileStatus fileStatus = this->fileStatus(syncFolder, file, _excludes);
statusString = fStatus.toSocketAPIString();
statusString = fileStatus.toSocketAPIString();
}
QString message = QLatin1String("STATUS:")+statusString+QLatin1Char(':')