aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUbbo Veentjer <[email protected]>2017-12-31 00:32:40 +0000
committerUbbo Veentjer <[email protected]>2017-12-31 00:32:40 +0000
commit0125280e4f65741e58ce05ebbf76dfffbd0067d6 (patch)
tree21ae8bb58adb52c5c83adda7a2251d4c106a296a
parentverify files readded (4ecc173307c8c1ed13f28b6955484a484a25402a to 7c874c55c82... (diff)
downloadgpg4usb-0125280e4f65741e58ce05ebbf76dfffbd0067d6.tar.gz
gpg4usb-0125280e4f65741e58ce05ebbf76dfffbd0067d6.zip
fix npe
-rwxr-xr-xfileencryptiondialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fileencryptiondialog.cpp b/fileencryptiondialog.cpp
index d81d3fd..38b7de5 100755
--- a/fileencryptiondialog.cpp
+++ b/fileencryptiondialog.cpp
@@ -66,13 +66,13 @@ FileEncryptionDialog::FileEncryptionDialog(GpgME::GpgContext *ctx, QStringList k
gLayout->addWidget(fl1, 0, 0);
gLayout->addWidget(inputFileEdit, 0, 1);
gLayout->addWidget(fb1, 0, 2);
+ signFileEdit = new QLineEdit();
// verify does not need outfile, but signature file
if(mAction != Verify) {
gLayout->addWidget(fl2, 1, 0);
gLayout->addWidget(outputFileEdit, 1, 1);
gLayout->addWidget(fb2, 1, 2);
} else {
- signFileEdit = new QLineEdit();
QPushButton *sfb1 = new QPushButton("...");
connect(sfb1, SIGNAL(clicked()), this, SLOT(slotSelectSignFile()));
QLabel *sfl1 = new QLabel(tr("Signature"));