From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Mon, 9 Sep 2019 16:22:48 +0000 (+0200) Subject: Added forgotten case when parsing log through gui. LockedFiles were not communicated. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~650^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=26e98d35e6ecfa4f3fb5822c4236f5ac75a06b59;p=nextcloud-desktop.git Added forgotten case when parsing log through gui. LockedFiles were not communicated. Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index f5aedacf0..9585202f5 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -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()) {