summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-08-07 02:03:18 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2015-08-07 02:03:18 +0200
commitff7d5ffca079260e181f7e07b1b33ccb7fab8225 (patch)
treef08a246bd539d61e6545b981251e35b4eca750ca /mainwindow.cpp
parentd0d237bb28e701f584c187455437ce3fc9943589 (diff)
magic fields
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 6d9a759c..d0493bf0 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -239,6 +239,7 @@ bool MainWindow::checkConfig() {
passTemplate = settings.value("passTemplate").toString();
useTemplate = settings.value("useTemplate").toBool();
+ templateAllFields = settings.value("templateAllFields").toBool();
//qDebug() << version;
@@ -377,6 +378,7 @@ void MainWindow::config() {
d->setPasswordChars(passwordChars);
d->useTemplate(useTemplate);
d->setTemplate(passTemplate);
+ d->templateAllFields(templateAllFields);
d->autoPull(autoPull);
d->autoPush(autoPush);
if (startupPhase) {
@@ -409,6 +411,7 @@ void MainWindow::config() {
passwordChars = d->getPasswordChars();
useTemplate = d->useTemplate();
passTemplate = d->getTemplate();
+ templateAllFields = d->templateAllFields();
autoPush = d->autoPush();
autoPull = d->autoPull();
@@ -439,6 +442,7 @@ void MainWindow::config() {
settings.setValue("passwordChars", passwordChars);
settings.setValue("useTemplate", useTemplate);
settings.setValue("passTemplate", passTemplate);
+ settings.setValue("templateAllFields", templateAllFields);
settings.setValue("autoPull", autoPull ? "true" : "false");
settings.setValue("autoPush", autoPush ? "true" : "false");
@@ -950,6 +954,8 @@ void MainWindow::setPassword(QString file, bool overwrite, bool isNew = false)
PasswordDialog d(this);
d.setFile(file);
d.setTemplate(passTemplate);
+ d.useTemplate(useTemplate);
+ d.templateAll(templateAllFields);
d.setPassword(lastDecrypt);
if (!d.exec()) {
d.setPassword(NULL);