diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-08-07 00:31:31 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-08-07 00:31:31 +0200 |
commit | 6e08df0b2c13e717545bceaf169021e6c597934c (patch) | |
tree | a3a49d7329425d155f3859596e22beece6cc7a91 | |
parent | 7afcf1ec6c83905bffd66b770eb8dad144fe0e57 (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); |