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

Default to any usage and any protocol in certificate selection dialog

... and make sure we catch calls of setOptions() without any allowed usage
or any allowed protocol.

GnuPG-bug-id: 5332
parent 4640882a
......@@ -118,7 +118,7 @@ private:
private:
QSet<QAbstractItemView *> connectedViews;
QString customLabelText;
Options options;
Options options = AnyCertificate | AnyFormat;
struct UI {
QLabel label;
......@@ -226,6 +226,8 @@ QString CertificateSelectionDialog::customLabelText() const
void CertificateSelectionDialog::setOptions(Options options)
{
Q_ASSERT((options & CertificateSelectionDialog::AnyCertificate) != 0);
Q_ASSERT((options & CertificateSelectionDialog::AnyFormat) != 0);
if (d->options == options) {
return;
}
......
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