From 4106c646f98b975683e145605a770f06201adee3 Mon Sep 17 00:00:00 2001 From: allexzander Date: Wed, 4 Aug 2021 13:22:17 +0300 Subject: [PATCH] Fix incorrect activity message on invalid char in the file name. Signed-off-by: allexzander --- src/libsync/discovery.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 7ca23b807..2e6771319 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -269,10 +269,8 @@ bool ProcessDirectoryJob::handleExcluded(const QString &path, const QString &loc } } if (invalid) { - item->_errorString = tr("File names containing the character \"%1\" are not supported on this file system.") - .arg(QLatin1Char(invalid)); - } - if (isInvalidPattern) { + item->_errorString = tr("File names containing the character \"%1\" are not supported on this file system.").arg(QLatin1Char(invalid)); + } else if (isInvalidPattern) { item->_errorString = tr("File name contains at least one invalid character"); } else { item->_errorString = tr("The file name is a reserved name on this file system.");