aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPOutlineView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPOutlineView.m')
-rw-r--r--Source/SPOutlineView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPOutlineView.m b/Source/SPOutlineView.m
index 1cf5055a..256090e2 100644
--- a/Source/SPOutlineView.m
+++ b/Source/SPOutlineView.m
@@ -55,7 +55,7 @@
[[self window] makeFirstResponder:self];
}
- if (![[self itemAtRow:[self selectedRow]] isLeaf])
+ if ([self levelForItem:[self itemAtRow:[self selectedRow]]] < 1)
return nil;
return [self menu];
}