mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-17 14:49:29 +00:00
fixed wrong usage of non-null API
This commit is contained in:
@@ -213,10 +213,13 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
NSInteger row = self.windowAssociationsTableView.selectedRow;
|
||||
if(row > - 1 && row < self.representedEntry.autotype.associations.count) {
|
||||
[self.observer willChangeModelProperty];
|
||||
[self.representedEntry.autotype removeAssociation:self.representedEntry.autotype.associations[row]];
|
||||
KPKWindowAssociation *association = self.representedEntry.autotype.associations[row];
|
||||
if(association) {
|
||||
[self.representedEntry.autotype removeAssociation:association];
|
||||
[self.observer didChangeModelProperty];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)toggleQuicklookPreview:(id)sender {
|
||||
if([QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible]) {
|
||||
|
||||
Reference in New Issue
Block a user