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

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-06 15:13:01 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-06 16:44:06 +0300
commit1b5925c327c01bbff65de4059d1153c9d6574ba9 (patch)
tree69250ddfb5938f1995cd7d94daf63769cae86eb3 /src/gui/folderstatusmodel.cpp
parentb4f61d0ba844286a45bc93bd5cf797944f8941d9 (diff)
Warn if we encounter an unsupported configuration
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r--src/gui/folderstatusmodel.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 8f4449bcf..f0d9d1373 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -207,8 +207,15 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const
return (f->syncResult().hasUnresolvedConflicts())
? QStringList(tr("There are unresolved conflicts. Click for details."))
: QStringList();
- case FolderStatusDelegate::FolderErrorMsg:
- return f->syncResult().errorStrings();
+ case FolderStatusDelegate::FolderErrorMsg: {
+ auto errors = f->syncResult().errorStrings();
+ const auto legacyError = FolderMan::instance()->unsupportedConfiguration(f->path());
+ if (!legacyError) {
+ // the error message might contain new lines, the delegate only expect multiple single line values
+ errors.append(legacyError.error().split(QLatin1Char('\n')));
+ }
+ return errors;
+ }
case FolderStatusDelegate::FolderInfoMsg:
return f->virtualFilesEnabled() && f->vfs().mode() != Vfs::Mode::WindowsCfApi
? QStringList(tr("Virtual file support is enabled."))