Fix assert when there is no workdir in decverify

We do not have a workdir or anything to move when verifying
a detached signature.
This error was introduced in 9d1ebcb1 and not yet released,
except in Gpg4win.

GnuPG-Bug-Id: T3761
parent 665d4946
......@@ -178,8 +178,8 @@ void AutoDecryptVerifyFilesController::Private::exec()
QTimer::singleShot(0, q, SLOT(schedule()));
if (m_dialog->exec() == QDialog::Accepted) {
if (m_dialog->exec() == QDialog::Accepted && m_workDir) {
// Without workdir there is nothing to move.
const QDir workdir(m_workDir->path());
const QDir outDir(m_dialog->outputLocation());
bool overWriteAll = false;
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