mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-15 09:32:17 +00:00
Fixed #299. Group column binding now gets correctly updated when parent of entry changes
This commit is contained in:
@@ -273,8 +273,10 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
NSAssert(entry.parent != nil, @"Entry needs to have a parent");
|
NSAssert(entry.parent != nil, @"Entry needs to have a parent");
|
||||||
[[view textField] bind:NSValueBinding toObject:entry.parent withKeyPath:NSStringFromSelector(@selector(name)) options:nil];
|
NSString *parentNameKeyPath = [NSString stringWithFormat:@"%@.%@",NSStringFromSelector(@selector(parent)),NSStringFromSelector(@selector(name))];
|
||||||
[[view imageView] bind:NSValueBinding toObject:entry.parent withKeyPath:NSStringFromSelector(@selector(iconImage)) options:nil];
|
NSString *parentIconImageKeyPath = [NSString stringWithFormat:@"%@.%@",NSStringFromSelector(@selector(parent)),NSStringFromSelector(@selector(iconImage))];
|
||||||
|
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:parentNameKeyPath options:nil];
|
||||||
|
[[view imageView] bind:NSValueBinding toObject:entry withKeyPath:parentIconImageKeyPath options:nil];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(isPasswordColum) {
|
else if(isPasswordColum) {
|
||||||
|
|||||||
Reference in New Issue
Block a user