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

Fix crash when import is called without parent

Avoid infinite recursion if no parent is set for import.

This fixes a crash when importing an already existing certificate
through the classify auto detection.
parent e112f6e5
......@@ -391,12 +391,8 @@ void ImportCertificatesCommand::Private::showDetails(QWidget *parent, const std:
return;
}
}
if (parent) {
setImportResultProxyModel(res, ids);
KMessageBox::information(parent, make_message_report(res, ids), i18n("Certificate Import Result"));
} else {
showDetails(res, ids);
}
setImportResultProxyModel(res, ids);
KMessageBox::information(parent, make_message_report(res, ids), i18n("Certificate Import Result"));
}
void ImportCertificatesCommand::Private::showDetails(const std::vector<ImportResult> &res, const QStringList &ids)
......
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