From 2bec587d4d233bf9769008bf5b177400350a845f Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 23 Apr 2018 11:03:34 +0200 Subject: [PATCH] SocketAPI: Allow opening share dialog if contents still syncing #4608 With the previous changes the "Share..." action was shown but it didn't work yet. --- src/gui/socketapi.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index 0ab589b64..2907f3db8 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -376,10 +376,8 @@ void SocketApi::processShareRequest(const QString &localFile, SocketListener *li const QString message = QLatin1String("SHARE:NOP:") + QDir::toNativeSeparators(localFile); listener->sendMessage(message); } else { - SyncFileStatus fileStatus = fileData.syncFileStatus(); - - // Verify the file is on the server (to our knowledge of course) - if (fileStatus.tag() != SyncFileStatus::StatusUpToDate) { + // If the file doesn't have a journal record, it might not be uploaded yet + if (!fileData.journalRecord().isValid()) { const QString message = QLatin1String("SHARE:NOTSYNCED:") + QDir::toNativeSeparators(localFile); listener->sendMessage(message); return;