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(""));