Fix incorrect activity message on invalid char in the file name.
authorallexzander <blackslayer4@gmail.com>
Wed, 4 Aug 2021 10:22:17 +0000 (13:22 +0300)
committerallexzander <blackslayer4@gmail.com>
Wed, 4 Aug 2021 10:22:17 +0000 (13:22 +0300)
Signed-off-by: allexzander <blackslayer4@gmail.com>
src/libsync/discovery.cpp

index 7ca23b807bb29c7f940de690cb8ce415558b5efc..2e6771319c52a530fdb08756fb0a468374cd42d1 100644 (file)
@@ -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.");