diff options
author | stuconnolly <stuart02@gmail.com> | 2010-09-21 19:45:31 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-09-21 19:45:31 +0000 |
commit | fdb1acef702128747b8bb1a9b4d089ac5be7e945 (patch) | |
tree | d13992ec5a3aa7931256e6b4d50bccd50e98c13a /Source/SPNavigatorOutlineView.m | |
parent | ac4cc3dec0eb6207d487159e7b40ef18fde519a0 (diff) | |
download | sequelpro-fdb1acef702128747b8bb1a9b4d089ac5be7e945.tar.gz sequelpro-fdb1acef702128747b8bb1a9b4d089ac5be7e945.tar.bz2 sequelpro-fdb1acef702128747b8bb1a9b4d089ac5be7e945.zip |
Add missing SVN properties and general comments tidy up.
Diffstat (limited to 'Source/SPNavigatorOutlineView.m')
-rw-r--r-- | Source/SPNavigatorOutlineView.m | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/SPNavigatorOutlineView.m b/Source/SPNavigatorOutlineView.m index 812d0732..0962e44c 100644 --- a/Source/SPNavigatorOutlineView.m +++ b/Source/SPNavigatorOutlineView.m @@ -38,20 +38,21 @@ // Enter or Return selects in active document the chosen item if ([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) { [[self delegate] selectInActiveDocumentItem:[self itemAtRow:[self selectedRow]] fromView:self]; + return; } [super keyDown:theEvent]; } -/* - * Return the data source item of the selected row, if no or multiple selections - * return nil +/** + * Return the data source item of the selected row, if no or multiple selections return nil. */ - (id)selectedItem { - if([self numberOfSelectedRows] == 1) + if ([self numberOfSelectedRows] == 1) { return [self itemAtRow:[self selectedRow]]; + } return nil; } |