From 01334e40f99e5a9b289e53a877529db941ea8bdb Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 9 Dec 2022 23:22:30 +0100 Subject: [PATCH] Improve folder encryption dialog info boxes Signed-off-by: Claudio Cambra --- src/gui/socketapi/socketapi.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/socketapi/socketapi.cpp b/src/gui/socketapi/socketapi.cpp index 56fb934a8..10166399b 100644 --- a/src/gui/socketapi/socketapi.cpp +++ b/src/gui/socketapi/socketapi.cpp @@ -546,13 +546,14 @@ void SocketApi::processEncryptRequest(const QString &localFile) connect(job, &OCC::EncryptFolderJob::finished, this, [fileData, job](const int status) { if (status == OCC::EncryptFolderJob::Error) { const int ret = QMessageBox::critical(nullptr, - tr("Failed to encrypt folder at \"%1\"").arg(fileData.folderRelativePath), - tr("Server replied with error: %1").arg(job->errorString())); + tr("Failed to encrypt folder"), + tr("Could not encrypt the following folder: \"%1\". \n\n" + "Server replied with error: %2").arg(fileData.folderRelativePath, job->errorString())); Q_UNUSED(ret) } else { const int ret = QMessageBox::information(nullptr, - tr("Folder at \"%1\" encrypted successfully").arg(fileData.folderRelativePath), - {}); + tr("Folder encrypted successfully").arg(fileData.folderRelativePath), + tr("The following folder was encrypted successfully: \"%1\"").arg(fileData.folderRelativePath)); Q_UNUSED(ret) } });