Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralex-z <blackslayer4@gmail.com>2021-12-09 14:16:59 +0300
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>2021-12-15 16:41:30 +0300
commitb66ba8ba0a0259dc3e89a18b72344e75f91379fb (patch)
treecbef931f91e4d39d2d900479c6e465aae974ead1 /src
parent6381acf85beba4bdf0aacbc9c18c04b20eb6d5af (diff)
Added sync stop when failed to cancel delete jobs.
Signed-off-by: alex-z <blackslayer4@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/libsync/discoveryphase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp
index aea3780e2..59d25d13c 100644
--- a/src/libsync/discoveryphase.cpp
+++ b/src/libsync/discoveryphase.cpp
@@ -186,6 +186,8 @@ QPair<bool, QByteArray> DiscoveryPhase::findAndCancelDeletedJob(const QString &o
qCWarning(lcDiscovery) << "(*it)->_type" << (*it)->_type;
qCWarning(lcDiscovery) << "(*it)->_isRestoration " << (*it)->_isRestoration;
Q_ASSERT(false);
+ addErrorToGui(SyncFileItem::Status::FatalError, tr("Error while canceling delete of a file"), originalPath);
+ emit fatalError(tr("Error while canceling delete of %1").arg(originalPath));
}
(*it)->_instruction = CSYNC_INSTRUCTION_NONE;
result = true;