Skip to content

Commit

Permalink
Review updates for multi-file tool support 5 - Fix premature MergeToo…
Browse files Browse the repository at this point in the history
…l deletion.
  • Loading branch information
gh-devnull committed May 10, 2023
1 parent 1b37de0 commit fb6218c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/MergeTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bool MergeTool::start() {
repo.index().setStaged({fileMerge.name.mid(length + 1)}, true);
}

if (--numMergeFiles) {
if (--numMergeFiles == 0) {
deleteLater();
}
});
Expand Down

0 comments on commit fb6218c

Please sign in to comment.