Skip to content

Commit af136c8

Browse files
memuratsgithub-actions
authored andcommitted
fixed encryption messages
1 parent 87a7cac commit af136c8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/gui/socketapi/socketapi.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ void SocketApi::processEncryptRequest(const QString &localFile)
567567

568568
auto job = new OCC::EncryptFolderJob(account, folder->journalDb(), choppedPath, choppedPath, folder->remotePath(), rec.numericFileId());
569569
job->setParent(this);
570-
connect(job, &OCC::EncryptFolderJob::finished, this, [fileData, job](const int status) {
570+
connect(job, &OCC::EncryptFolderJob::finished, this, [fileData, job, account](const int status) {
571571
if (status == OCC::EncryptFolderJob::Error) {
572572
const int ret = QMessageBox::critical(
573573
nullptr,
@@ -578,8 +578,9 @@ void SocketApi::processEncryptRequest(const QString &localFile)
578578
Q_UNUSED(ret)
579579
} else {
580580
const int ret = QMessageBox::information(nullptr,
581-
tr("Folder encrypted successfully").arg(fileData.folderRelativePath),
582-
tr("The following folder was encrypted successfully: \"%1\"").arg(fileData.folderRelativePath));
581+
tr("Folder encrypted successfully"),
582+
tr("The following folder was encrypted successfully: \"%1\"")
583+
.arg(fileData.folderRelativePath));
583584
Q_UNUSED(ret)
584585
}
585586
});

0 commit comments

Comments
 (0)