diff --git a/src/tools/MergeTool.cpp b/src/tools/MergeTool.cpp index a185c7605..755665ee6 100644 --- a/src/tools/MergeTool.cpp +++ b/src/tools/MergeTool.cpp @@ -121,7 +121,7 @@ bool MergeTool::start() { repo.index().setStaged({fileMerge.name.mid(length + 1)}, true); } - if (--numMergeFiles) { + if (--numMergeFiles == 0) { deleteLater(); } });