Permalink
Browse files

Fixed: If there is no selection, then then "Terminal Button" opens th…

…e terminal with the path of the first item in the NSOutlineView.
  • Loading branch information...
dhowden authored and jezdez committed Nov 22, 2010
1 parent 7e0b321 commit 1c6634c929e9e4feadb316a8c253fb62256244a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/MDSidebarBorderView.m
@@ -231,7 +231,7 @@ - (void)terminalButtonPressed:(id)sender {
[projectFileOutlineView respondsToSelector:@selector(selectedItems)]) {
selectedItems = [projectFileOutlineView performSelector:@selector(selectedItems)];
if (!selectedItems || ![selectedItems isKindOfClass:[NSArray class]] || [selectedItems count] == 0) {
return;
selectedItems = [NSArray arrayWithObject:[(NSOutlineView *)projectFileOutlineView itemAtRow:0]];
}
}

0 comments on commit 1c6634c

Please sign in to comment.