diff --git a/src/certificate.hxx b/src/certificate.hxx index cfbedd7..598c9b7 100644 --- a/src/certificate.hxx +++ b/src/certificate.hxx @@ -21,6 +21,10 @@ class Certificate: public QWidget, protected Ui::Certificate { Certificate(QWidget* p): QWidget(p) { setupUi(this); } + void adjust() { + _cert->adjustSize(); + adjustSize(); + } Certificate& certificate(const QSslCertificate& cert) { _cert->clear(); if (!cert.isValid()) return *this; diff --git a/src/pinentry.hxx b/src/pinentry.hxx index 06e8ca1..012a918 100644 --- a/src/pinentry.hxx +++ b/src/pinentry.hxx @@ -74,7 +74,7 @@ class PinEntry: public QDialog, public Ui::PinEntry { protected Q_SLOTS: void on__showDetails_toggled(bool s) { _cert->setVisible(s); - _cert->adjustSize(); + _cert->adjust(); adjustSize(); } protected: