diff options
author | Max <post@wickenrode.com> | 2014-08-03 20:10:00 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2014-08-03 20:10:00 +0200 |
commit | 2ed99ae914206ec7ba7f4a7778c69d6c041a411c (patch) | |
tree | 244a21f227ea19991b100629cb01b3372e60bccf /Source/SPNavigatorController.m | |
parent | 2570a91dd1e1d7b88b908db33494baeaa5001e74 (diff) | |
download | sequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.tar.gz sequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.tar.bz2 sequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.zip |
Replace a few other instances with objectOrNilAtIndex:
Diffstat (limited to 'Source/SPNavigatorController.m')
-rw-r--r-- | Source/SPNavigatorController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPNavigatorController.m b/Source/SPNavigatorController.m index e721d16b..1a7e52fd 100644 --- a/Source/SPNavigatorController.m +++ b/Source/SPNavigatorController.m @@ -389,7 +389,7 @@ static NSComparisonResult compareStrings(NSString *s1, NSString *s2, void* conte [syncButton setState:NSOffState]; // Select the database and table - [doc selectDatabase:[pathArray objectAtIndex:1] item:([pathArray count] > 2)?[pathArray objectAtIndex:2]:nil]; + [doc selectDatabase:[pathArray objectAtIndex:1] item:[pathArray objectOrNilAtIndex:2]]; if(oldState == NSOnState) [self performSelector:@selector(_setSyncButtonOn) withObject:nil afterDelay:0.1]; |