Use properties

This commit is contained in:
Michael Starke
2018-11-12 12:33:13 +01:00
parent f83e071c16
commit 2d27fcbbb0

View File

@@ -402,7 +402,7 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
NSInteger activeRow = self.entryTable.clickedRow; NSInteger activeRow = self.entryTable.clickedRow;
if(activeRow > -1 && activeRow < [self.entryArrayController.arrangedObjects count]) { if(activeRow > -1 && activeRow < [self.entryArrayController.arrangedObjects count]) {
if(![self.entryArrayController.selectionIndexes containsIndex:activeRow]) { if(![self.entryArrayController.selectionIndexes containsIndex:activeRow]) {
return @[ [self.entryArrayController arrangedObjects][activeRow] ]; return @[ self.entryArrayController.arrangedObjects[activeRow] ];
} }
} }
return self.entryArrayController.selectedObjects; return self.entryArrayController.selectedObjects;