From a7fe86aeef32ac8a7c8ab8f64dfde2e5124a7ca8 Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 23 Oct 2011 20:59:50 +0000 Subject: verifydetaildialog doesn't crash anymore git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@565 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- verifydetailsdialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'verifydetailsdialog.cpp') diff --git a/verifydetailsdialog.cpp b/verifydetailsdialog.cpp index 477f982..945e928 100644 --- a/verifydetailsdialog.cpp +++ b/verifydetailsdialog.cpp @@ -32,15 +32,16 @@ VerifyDetailsDialog::VerifyDetailsDialog(QWidget *parent, GpgME::Context* ctx, K connect(mCtx, SIGNAL(keyDBChanged()), this, SLOT(refresh())); mainLayout = new QHBoxLayout(); this->setLayout(mainLayout); + + mVbox = new QWidget(); refresh(); + this->exec(); } void VerifyDetailsDialog::refresh() { - if (mVbox) { - mVbox->close(); - } + mVbox->close(); mVbox = new QWidget(); mVboxLayout = new QVBoxLayout(mVbox); @@ -73,7 +74,6 @@ void VerifyDetailsDialog::refresh() } } } - // Add informationbox for every single key while (sign) { VerifyKeyDetailBox *sbox = new VerifyKeyDetailBox(this,mCtx,mKeyList,sign); -- cgit v1.2.3