aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-20 00:12:06 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-20 00:12:06 +0000
commitd8b3558dc3825e95f3edf529f75b24b18b74e4ba (patch)
treee01807459976fe04516f79b8a18c4781388b38e9 /Source
parentca77ea4aa4972ddda817485b2f301f6b39ed14e3 (diff)
downloadsequelpro-d8b3558dc3825e95f3edf529f75b24b18b74e4ba.tar.gz
sequelpro-d8b3558dc3825e95f3edf529f75b24b18b74e4ba.tar.bz2
sequelpro-d8b3558dc3825e95f3edf529f75b24b18b74e4ba.zip
Diffstat (limited to 'Source')
-rw-r--r--Source/SPNavigatorController.m7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/SPNavigatorController.m b/Source/SPNavigatorController.m
index 1dc53bcd..1520957b 100644
--- a/Source/SPNavigatorController.m
+++ b/Source/SPNavigatorController.m
@@ -142,8 +142,6 @@ static SPNavigatorController *sharedNavigatorController = nil;
if(selectedItem1) {
NSInteger itemIndex = [outlineSchema1 rowForItem:selectedItem1];
if (itemIndex < 0) {
- // You need to decide what happens if the item doesn't exist
- NSLog(@"1");
return;
}
@@ -152,8 +150,6 @@ static SPNavigatorController *sharedNavigatorController = nil;
if(selectedItem2) {
NSInteger itemIndex = [outlineSchema2 rowForItem:selectedItem2];
if (itemIndex < 0) {
- // You need to decide what happens if the item doesn't exist
- NSLog(@"2");
return;
}
@@ -178,8 +174,7 @@ static SPNavigatorController *sharedNavigatorController = nil;
NSSortDescriptor *desc = [[NSSortDescriptor alloc] initWithKey:nil ascending:YES selector:@selector(localizedCompare:)];
NSArray *sortedItems = [[item allKeys] sortedArrayUsingDescriptors:[NSArray arrayWithObject:desc]];
[desc release];
- // if(index < [sortedItems count])
- return [item objectForKey:[sortedItems objectAtIndex:index]];
+ return [item objectForKey:[sortedItems objectAtIndex:index]];
}
else if ([item isKindOfClass:[NSArray class]])
{