lib/model: Pass correct file info to deleteItemOnDisk (fixes #5616) (#5617)

This commit is contained in:
Simon Frei 2019-03-25 12:42:39 +01:00 committed by Jakob Borg
parent 24f41e169a
commit e4ab9d3312

View File

@ -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