diff options
author | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-08-07 00:31:31 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-08-07 00:31:31 +0200 |
commit | 14862ff50c84bf9e688b210a068b9a1c1b1dcc89 (patch) | |
tree | a3a49d7329425d155f3859596e22beece6cc7a91 | |
parent | 3fa44eedff7eceec39da2b0466841056c70712b9 (diff) |
discard empty template
-rw-r--r-- | passworddialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/passworddialog.cpp b/passworddialog.cpp index 8f01b811..c7b3673a 100644 --- a/passworddialog.cpp +++ b/passworddialog.cpp @@ -77,6 +77,9 @@ QString PasswordDialog::getPassword() void PasswordDialog::setTemplate(QString rawFields) { fields = rawFields.split('\n'); foreach (QString field, fields) { + if (field.isEmpty()) { + continue; + } QLineEdit *line = new QLineEdit(); line->setObjectName(field); ui->formLayout->addRow(new QLabel(field), line); |