From: Olivier Goffart Date: Tue, 4 Jun 2019 10:50:30 +0000 (+0200) Subject: SocketAPI: Fix string claiming a folder is a file X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~234 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2c975b1e701fab53f1066b29a8d0bb8387722777;p=nextcloud-desktop.git SocketAPI: Fix string claiming a folder is a file Issue #7206 --- diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index 88dc7af8b..6f3b534e9 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -876,7 +876,8 @@ void SocketApi::sendSharingContextMenuOptions(const FileData &fileData, SocketLi // If sharing is globally disabled, do not show any sharing entries. // If there is no permission to share for this file, add a disabled entry saying so if (isOnTheServer && !record._remotePerm.isNull() && !record._remotePerm.hasPermission(RemotePermissions::CanReshare)) { - listener->sendMessage(QLatin1String("MENU_ITEM:DISABLED:d:") + tr("Resharing this file is not allowed")); + listener->sendMessage(QLatin1String("MENU_ITEM:DISABLED:d:") + (!record.isDirectory() + ? tr("Resharing this file is not allowed") : tr("Resharing this folder is not allowed"))); } else { listener->sendMessage(QLatin1String("MENU_ITEM:SHARE") + flagString + tr("Share options"));