Clicking on a non-editable level indicator in a table row now selects that row.

This commit is contained in:
Alexander Ljungberg
2011-06-06 00:44:15 -04:00
parent a127fc9ec3
commit aac09d8208
+9
View File
@@ -223,6 +223,15 @@ var _CPLevelIndicatorBezelColor = nil,
return _isEditable;
}
- (CPView)hitTest:(CPPoint)aPoint
{
// Don't swallow clicks when displayed in a table.
if (![self isEditable])
return nil;
return [super hitTest:aPoint];
}
- (void)mouseDown:(CPEvent)anEvent
{
if (![self isEditable] || ![self isEnabled])