<< "accountState:" << _accountState
<< "relPath:" << _relPath
<< "token:" << _token;
+
+ showError(tr("Could not start editing locally."),
+ tr("An error occurred trying to verify the request to edit locally."));
return;
}
if (_relPathParent == QStringLiteral("/")) {
qCWarning(lcEditLocallyJob) << "LsColJob must only be used for nested folders.";
+ showError(tr("Could not start editing locally."),
+ tr("An error occurred during data retrieval."));
return;
}
<< "fileName:" << _fileName
<< "localFilePath:" << _localFilePath
<< "folderForFile:" << _folderForFile;
+
+ showError(tr("Could not start editing locally."), tr("An error occurred during setup."));
return;
}
if (_relPathParent == QStringLiteral("/")) {
qCWarning(lcEditLocallyJob) << "LsColJob must only be used for nested folders.";
+ showError(tr("Could not start editing locally."),
+ tr("An error occurred during data retrieval."));
return;
}
Q_ASSERT(job);
if (!job) {
qCWarning(lcEditLocallyJob) << "Must call slotDirectoryListingIterated from a signal.";
+ showError(tr("Could not start editing locally."),
+ tr("An error occurred during data retrieval."));
return;
}
Q_ASSERT(item && !item->isEmpty());
if (!item || item->isEmpty()) {
qCWarning(lcEditLocallyJob) << "invalid item";
- }
- if (item->_file == _relativePathToRemoteRoot) {
+ showError(tr("Could not start editing locally."),
+ tr("An error occurred trying to synchronise the file to edit locally."));
+ } else if (item->_file == _relativePathToRemoteRoot) {
disconnect(&_folderForFile->syncEngine(), &SyncEngine::itemDiscovered, this, &EditLocallyJob::slotItemDiscovered);
if (item->_instruction == CSYNC_INSTRUCTION_NONE) {
// return early if the file is already in sync
if(_localFilePath.isEmpty()) {
qCWarning(lcEditLocallyJob) << "Could not edit locally. Invalid local file path.";
+ showError(tr("Could not start editing locally."),
+ tr("Invalid local file path."));
return;
}