зеркало из https://github.com/nextcloud/desktop.git
Merge pull request #4058 from nextcloud/bugfix/do-not-crash-on-cancele-delete-jobs
Do not crash on findAndCancelDeletedJob
This commit is contained in:
Коммит
4c447b06a2
|
@ -185,7 +185,9 @@ QPair<bool, QByteArray> DiscoveryPhase::findAndCancelDeletedJob(const QString &o
|
|||
qCWarning(lcDiscovery) << "instruction" << instruction;
|
||||
qCWarning(lcDiscovery) << "(*it)->_type" << (*it)->_type;
|
||||
qCWarning(lcDiscovery) << "(*it)->_isRestoration " << (*it)->_isRestoration;
|
||||
ENFORCE(false);
|
||||
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче