diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2016-06-01 13:57:43 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2016-06-01 13:57:43 +0200 |
commit | fc0a7ab72670ccad7568b87afe085097a38f365f (patch) | |
tree | c136b7ed1a61d81e66c6baa1113bc3da11d33b2a | |
parent | 1704b78ea2820eadd262b2c53000599fe5308cfc (diff) |
Revert "Trimming and adding sapce after : when using templates, fixes #182"
This reverts commit 1704b78ea2820eadd262b2c53000599fe5308cfc.
-rw-r--r-- | passworddialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/passworddialog.cpp b/passworddialog.cpp index 5db795d5..ac5230de 100644 --- a/passworddialog.cpp +++ b/passworddialog.cpp @@ -43,7 +43,7 @@ void PasswordDialog::setPassword(QString password) { if (token.startsWith(widget->objectName() + ':')) { tokens.removeAt(j); QString value = token.remove(0, widget->objectName().length() + 1); - reinterpret_cast<QLineEdit *>(widget)->setText(value.trimmed()); + reinterpret_cast<QLineEdit *>(widget)->setText(value); } } previous = widget; @@ -58,8 +58,8 @@ void PasswordDialog::setPassword(QString password) { if (!passTemplate.contains(field) && value.startsWith("//")) continue; // colon is probably from a url QLineEdit *line = new QLineEdit(); - line->setObjectName(field.trimmed()); - line->setText(value.trimmed()); + line->setObjectName(field); + line->setText(value); ui->formLayout->addRow(new QLabel(field), line); setTabOrder(previous, line); previous = line; @@ -82,7 +82,7 @@ QString PasswordDialog::getPassword() { QString text = reinterpret_cast<QLineEdit *>(widget)->text(); if (text.isEmpty()) continue; - passFile += widget->objectName() + ": " + text + "\n"; + passFile += widget->objectName() + ":" + text + "\n"; } passFile += ui->plainTextEdit->toPlainText(); return passFile; |