diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-07-28 01:14:45 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-07-28 01:14:45 +0200 |
commit | 8db2810b9005e8fc612589590443e4cd3a4c852c (patch) | |
tree | ad8eb6c812a3d522e0679e23a4f2b6090419b5f8 | |
parent | 30f76d098114ee81720af47e56a3a2f4bba9f95c (diff) | |
parent | 8090a049752504a19506f377afe075d8209684c3 (diff) |
Manually merged version conflict (litteral) and features for git integration and hanling of pwgen
-rw-r--r-- | dialog.cpp | 5 | ||||
-rw-r--r-- | mainwindow.cpp | 7 | ||||
-rw-r--r-- | qtpass.iss | 2 | ||||
-rw-r--r-- | qtpass.pro | 2 |
4 files changed, 12 insertions, 4 deletions
@@ -615,6 +615,10 @@ void Dialog::on_toolButtonPwgen_clicked() QString pwgen = selectExecutable(); if (!pwgen.isEmpty()) { ui->pwgenPath->setText(pwgen); + ui->checkBoxUsePwgen->setEnabled(true); + } else { + ui->checkBoxUsePwgen->setEnabled(false); + ui->checkBoxUsePwgen->setChecked(false); } } @@ -635,6 +639,7 @@ void Dialog::setPwgenPath(QString pwgen) ui->pwgenPath->setText(pwgen); if (pwgen.isEmpty()) { ui->checkBoxUsePwgen->setChecked(false); + ui->checkBoxUsePwgen->setEnabled(false); } on_checkBoxUsePwgen_clicked(); } diff --git a/mainwindow.cpp b/mainwindow.cpp index 7b6152ec..9e719643 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -974,8 +974,11 @@ void MainWindow::on_deleteButton_clicked() currentAction = DELETE; executePass("rm -f \"" + file + '"'); } else { - // TODO GIT - QFile(file).remove(); + if (useGit) { + executeWrapper(gitExecutable, "rm -f \"" + file + '"'); + } else { + QFile(file).remove(); + } } } else { file = getDir(ui->treeView->currentIndex(), usePass); @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "QtPass"
-#define MyAppVersion "0.9.0"
+#define MyAppVersion "0.9.1"
#define MyAppPublisher "IJhack"
#define MyAppURL "http://qtpass.org/"
#define MyAppExeName "qtpass.exe"
@@ -18,7 +18,7 @@ macx { } TEMPLATE = app -VERSION = 0.9.0 +VERSION = 0.9.1 SOURCES += main.cpp\ mainwindow.cpp \ |