aboutsummaryrefslogtreecommitdiffstats
path: root/verifydetailsdialog.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-10-23 20:59:50 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-10-23 20:59:50 +0000
commita7fe86aeef32ac8a7c8ab8f64dfde2e5124a7ca8 (patch)
tree5008271197962e608e132bc8f0cc0550ef8d4f7e /verifydetailsdialog.cpp
parentchanged to GPLv3 (diff)
downloadgpg4usb-a7fe86aeef32ac8a7c8ab8f64dfde2e5124a7ca8.tar.gz
gpg4usb-a7fe86aeef32ac8a7c8ab8f64dfde2e5124a7ca8.zip
verifydetaildialog doesn't crash anymore
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@565 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'verifydetailsdialog.cpp')
-rw-r--r--verifydetailsdialog.cpp8
1 files changed, 4 insertions, 4 deletions
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);