From 022512ec7b4549e07e89e0076a4819006fff1acb Mon Sep 17 00:00:00 2001 From: alex-z Date: Tue, 13 Dec 2022 11:17:12 +0100 Subject: [PATCH] Fix CI errors. Signed-off-by: alex-z --- src/gui/folderstatusmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index 16b3ef8bbd93d..cdf5d12fc66ae 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -165,7 +165,7 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const const auto suffix = (x._isNonDecryptable && x._checked && (!xParent || !xParent->_isEncrypted)) ? tr(" - %1").arg("Could not decrypt!") : QString{}; - return x._size < 0 ? x._name + suffix : tr("%1 (%2)").arg(x._name, Utility::octetsToString(x._size)) + suffix; + return x._size < 0 ? QString(x._name + suffix) : QString(tr("%1 (%2)").arg(x._name, Utility::octetsToString(x._size)) + suffix); } case Qt::ToolTipRole: return QString(QLatin1String("") + Utility::escape(x._size < 0 ? x._name : tr("%1 (%2)").arg(x._name, Utility::octetsToString(x._size))) + QLatin1String(""));