diff --git a/src/identity/identitydialog.cpp b/src/identity/identitydialog.cpp index 7311ffa7e..f593c3570 100644 --- a/src/identity/identitydialog.cpp +++ b/src/identity/identitydialog.cpp @@ -265,7 +265,8 @@ void KeySelectionCombo::onCustomItemSelected(const QVariant &type) return; } else if (type == QLatin1String("generate-new-key")) { auto job = new KeyGenerationJob(mName, mEmail, this); - new Kleo::ProgressDialog(job, i18n("Generating new key pair..."), parentWidget()); + auto dlg = new Kleo::ProgressDialog(job, i18n("Generating new key pair..."), parentWidget()); + dlg->setModal(true); setEnabled(false); connect(job, &KeyGenerationJob::done, this, [this]() {