Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 05610184 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Rolf Eike Beer

do not add duplicate "--command-fd=0" to GnuPG commandline

parent 2835fc8e
......@@ -120,11 +120,10 @@ KGpgTextOrFileTransaction::preStart()
args << command();
// if the input is not stdin set command-fd so GnuPG
// can ask if e.g. the file already exists
if (!locfiles.isEmpty() || !m_tempfiles.isEmpty()) {
m_closeInput = !args.contains(QLatin1String("--command-fd=0"));
if (m_closeInput && (!locfiles.isEmpty() || !m_tempfiles.isEmpty())) {
args << QLatin1String("--command-fd=0");
m_closeInput = false;
} else {
m_closeInput = !args.contains(QLatin1String("--command-fd=0"));
}
if (locfiles.count() + m_tempfiles.count() > 1)
args << QLatin1String("--multifile");
......
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