mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-17 15:59:24 +00:00
fixed wrong usage of non-null API
This commit is contained in:
@@ -213,8 +213,11 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
|||||||
NSInteger row = self.windowAssociationsTableView.selectedRow;
|
NSInteger row = self.windowAssociationsTableView.selectedRow;
|
||||||
if(row > - 1 && row < self.representedEntry.autotype.associations.count) {
|
if(row > - 1 && row < self.representedEntry.autotype.associations.count) {
|
||||||
[self.observer willChangeModelProperty];
|
[self.observer willChangeModelProperty];
|
||||||
[self.representedEntry.autotype removeAssociation:self.representedEntry.autotype.associations[row]];
|
KPKWindowAssociation *association = self.representedEntry.autotype.associations[row];
|
||||||
[self.observer didChangeModelProperty];
|
if(association) {
|
||||||
|
[self.representedEntry.autotype removeAssociation:association];
|
||||||
|
[self.observer didChangeModelProperty];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user