Update file icon when its name changes (Mac client)

This commit is contained in:
Mike Gelfand 2017-02-21 23:52:41 +03:00
parent ecd1eb7914
commit 63b6c11602
2 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,8 @@
{
[fName release];
fName = [newName copy];
[fIcon release];
fIcon = nil;
return YES;
}
}

View File

@ -1968,6 +1968,9 @@ bool trashDataFile(const char * filename, tr_error ** error)
[fFlatFileList release];
[self sortFileList: flatFileList];
fFlatFileList = flatFileList;
[fIcon release];
fIcon = nil;
}
else
NSLog(@"Error renaming %@ to %@", oldPath, [path stringByAppendingPathComponent: newName]);