diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-07-28 01:00:51 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-07-28 01:00:51 +0200 |
commit | 2552eaf929bddbb41ea9a4615d5f0ff48246e7b0 (patch) | |
tree | 3936af0ba66d62f5c84344445b25d24aa55822fc /mainwindow.cpp | |
parent | 1eac48ba56a3b47f8543937f82a8a4da5f981b4f (diff) |
Fixes https://github.com/IJHack/qtpass/issues/57 post 2
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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); |