Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Fix decrypt / verify of multiple files at once

This fixes another regression introduced by 9d1ebcb1.
Use the same workdir for multiple files as the code
expects that.

BUG: 391222
parent 54b3ce7f
......@@ -419,13 +419,15 @@ std::vector< std::shared_ptr<Task> > AutoDecryptVerifyFilesController::Private::
const auto ad = q->pick_archive_definition(cFile.protocol, archiveDefinitions, cFile.fileName);
if (FileOperationsPreferences().dontUseTmpDir()) {
m_workDir = new QTemporaryDir(heuristicBaseDirectory(fileNames) + "/kleopatra-XXXXXX");
if (!m_workDir) {
m_workDir = new QTemporaryDir(heuristicBaseDirectory(fileNames) + "/kleopatra-XXXXXX");
if (!m_workDir->isValid()) {
qCDebug(KLEOPATRA_LOG) << m_workDir->path() << "not a valid temporary directory.";
delete m_workDir;
m_workDir = new QTemporaryDir();
} else {
} else if (!m_workDir) {
m_workDir = new QTemporaryDir();
qCDebug(KLEOPATRA_LOG) << "Using:" << m_workDir->path() << "as temporary directory.";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment