Fixed wrong conflict badge after resolving conflict with 'Keep both'

This commit is contained in:
David A. Velasco 2016-04-18 13:49:11 +02:00 committed by Juan Carlos González Cabrero
parent bd96e2c9ce
commit a97b6ca88f

View file

@ -765,8 +765,8 @@ public class UploadFileOperation extends SyncOperation {
}
if (mWasRenamed) {
OCFile oldFile = mOldFile;
if (oldFile.fileExists()) {
OCFile oldFile = getStorageManager().getFileByPath(mOldFile.getRemotePath());
if (oldFile != null) {
oldFile.setStoragePath(null);
getStorageManager().saveFile(oldFile);
getStorageManager().saveConflict(oldFile, null);