From e4ab9d3312dfd768e269f5a7ed75eb9cfe50bffb Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Mon, 25 Mar 2019 12:42:39 +0100 Subject: [PATCH] lib/model: Pass correct file info to deleteItemOnDisk (fixes #5616) (#5617) --- lib/model/folder_sendrecv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/folder_sendrecv.go b/lib/model/folder_sendrecv.go index 60c152d94..69669dfd3 100644 --- a/lib/model/folder_sendrecv.go +++ b/lib/model/folder_sendrecv.go @@ -1521,7 +1521,7 @@ func (f *sendReceiveFolder) performFinish(file, curFile protocol.FileInfo, hasCu return f.moveForConflict(name, file.ModifiedBy.String(), scanChan) }, f.fs, curFile.Name) } else { - err = f.deleteItemOnDisk(file, scanChan) + err = f.deleteItemOnDisk(curFile, scanChan) } if err != nil { return err