Added forgotten case when parsing log through gui. LockedFiles were not communicated.
authorDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Mon, 9 Sep 2019 16:22:48 +0000 (18:22 +0200)
committerDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Mon, 9 Sep 2019 17:23:31 +0000 (19:23 +0200)
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
src/gui/folder.cpp

index f5aedacf07f15bbb4a48aa47a47b05cbb03aee7f..9585202f5922951adff58a3da7df1e3a5771b650 100644 (file)
@@ -417,6 +417,13 @@ void Folder::createGuiLog(const QString &filename, LogStatus status, int count,
                 text = tr("%1 could not be synced due to an error. See the log for details.").arg(file);
             }
             break;
+        case LogStatusFileLocked:
+            if (count > 1) {
+                text = tr("%1 and %n other file(s) are currently locked.", "", count -1).arg(file);
+            } else {
+                text = tr("%1 is currently locked.").arg(file);
+            }
+            break;
         }
 
         if (!text.isEmpty()) {