Commit 476e1af1 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Disable the "Fetch Missing Keys" button instead of the whole dialog

Since the command shows a modal progress dialog the user is anyway
stopped from interacting with the dialog while the key retrieval is
running.

GnuPG-bug-id: 5805
parent 283f75ce
Pipeline #133080 passed with stage
in 1 minute and 44 seconds
......@@ -132,12 +132,12 @@ void WebOfTrustDialog::fetchMissingKeys()
auto cmd = new Kleo::ImportCertificateFromKeyserverCommand{QStringList{std::begin(missingSignerKeys), std::end(missingSignerKeys)}};
cmd->setParentWidget(this);
setEnabled(false);
mFetchKeysBtn->setEnabled(false);
connect(cmd, &Kleo::ImportCertificateFromKeyserverCommand::finished,
this, [this]() {
// Trigger an update when done
setKey(key());
setEnabled(true);
mFetchKeysBtn->setEnabled(true);
});
cmd->start();
}
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