Skip to content

Commit

Permalink
SocketAPI: Use NOP only, not NONE in the share api protocol.
Browse files Browse the repository at this point in the history
Otherwise, plugins might brake, as the linux one did.
  • Loading branch information
Klaas Freitag committed Apr 12, 2016
1 parent f443377 commit 15988c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libsync/syncfilestatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ bool SyncFileStatus::sharedWithMe()
QString SyncFileStatus::toSocketAPIString() const
{
QString statusString;
bool canBeShared = true;

switch(_tag)
{
case StatusNone:
statusString = QLatin1String("NONE");
statusString = QLatin1String("NOP");
canBeShared = false;
break;
case StatusSync:
statusString = QLatin1String("SYNC");
Expand All @@ -70,7 +72,7 @@ QString SyncFileStatus::toSocketAPIString() const
statusString = QLatin1String("ERROR");
break;
}
if(_sharedWithMe) {
if(canBeShared && _sharedWithMe) {
statusString += QLatin1String("+SWM");
}

Expand Down

0 comments on commit 15988c6

Please sign in to comment.