Unverified Commit 09b95f4d authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

add missing space between gnupg arguments when generating key in expert mode

Fixes: 565b6c31
BUG: 447611
FIXED-IN: 21.12.2
parent b328227c
Pipeline #122015 passed with stage
in 1 minute and 36 seconds
/*
SPDX-FileCopyrightText: 2002 Jean-Baptiste Mardelle <bj@altern.org>
SPDX-FileCopyrightText: 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Rolf Eike Beer <kde@opensource.sf-tec.de>
SPDX-FileCopyrightText: 2007-2022 Rolf Eike Beer <kde@opensource.sf-tec.de>
SPDX-FileCopyrightText: 2011 Luis Ángel Fernández Fernández <laffdez@gmail.com>
SPDX-FileCopyrightText: 2016 Andrius Štikonas <andrius@stikonas.eu>
SPDX-License-Identifier: GPL-2.0-or-later
......@@ -506,9 +506,9 @@ void KeysManager::slotGenerateKey()
const QString gpgbin = KGpgSettings::gpgBinaryPath();
QString gpg_args = gpgbin + QLatin1String(" --expert");
if (GPGProc::gpgVersion(GPGProc::gpgVersionString(gpgbin)) > 0x20100)
gpg_args += QLatin1String(" --full-gen-key");
gpg_args += QLatin1String(" --full-gen-key ");
else
gpg_args += QLatin1String(" --gen-key");
gpg_args += QLatin1String(" --gen-key ");
gpg_args += GPGProc::getGpgHomeArguments(gpgbin).join(QLatin1Char(' '));
......
Supports Markdown
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