Skip to content

Commit 2552eaf

Browse files
committed
Fixes #57 post 2
1 parent 1eac48b commit 2552eaf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mainwindow.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -974,8 +974,11 @@ void MainWindow::on_deleteButton_clicked()
974974
currentAction = DELETE;
975975
executePass("rm -f \"" + file + '"');
976976
} else {
977-
// TODO GIT
978-
QFile(file).remove();
977+
if (useGit) {
978+
executeWrapper(gitExecutable, "rm -f \"" + file + '"');
979+
} else {
980+
QFile(file).remove();
981+
}
979982
}
980983
} else {
981984
file = getDir(ui->treeView->currentIndex(), usePass);

0 commit comments

Comments
 (0)