summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@intevation.de>2016-08-02 12:23:19 (GMT)
committerAndre Heinecke <aheinecke@intevation.de>2016-08-02 13:33:22 (GMT)
commite35bbe917ce9bd3fb89596d06b5e3a0ff8115b1f (patch)
tree37343ca9b57db0cd810fd9024a5cbf23099c7d4a
parentd8e6657ccdd831862f88e6acbd37acddb49142a1 (diff)
Enable clear button in CertificateLineEdit
Makes sense especially after one added multiple certificates through the dialog.
-rw-r--r--src/crypto/gui/certificatelineedit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crypto/gui/certificatelineedit.cpp b/src/crypto/gui/certificatelineedit.cpp
index bd01783..5c2a7c2 100644
--- a/src/crypto/gui/certificatelineedit.cpp
+++ b/src/crypto/gui/certificatelineedit.cpp
@@ -78,6 +78,7 @@ CertificateLineEdit::CertificateLineEdit(AbstractKeyListModel *model,
{
auto *hLay = new QHBoxLayout;
mEdit->setPlaceholderText(i18n("Please enter a name or email address..."));
+ mEdit->setClearButtonEnabled(true);
hLay->addWidget(mEdit, -1);
mEdit->addAction(mLineAction, QLineEdit::LeadingPosition);