Index: trunk/ChameleonPrefPane/Sources/TableViewsController.mm =================================================================== --- trunk/ChameleonPrefPane/Sources/TableViewsController.mm (revision 357) +++ trunk/ChameleonPrefPane/Sources/TableViewsController.mm (revision 358) @@ -123,8 +123,11 @@ return img; } //-------------------------------------------------------------------------- -- (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:(NSInteger)row +- (BOOL)tableView:(NSTableView *)tv shouldSelectRow:(NSInteger)row { + if (tv!= mPartitionsTable) + return YES; + PartitionInfoElement* partInfo = [PartsInfoMgr objectAtIndex:row]; BOOL ret = (partInfo != nil && [partInfo hidden]== false) ? YES : NO; [partInfo release]; @@ -132,32 +135,14 @@ return ret; } -- (BOOL)tableView:(NSTableView *)tableView shouldSelectTableColumn:(NSInteger)col +- (BOOL)tableView:(NSTableView *)tv shouldSelectTableColumn:(NSInteger)col { - if (tableView!= mPartitionsTable) - return [self tableView:tableView shouldSelectTableColumn: col]; + if (tv!= mPartitionsTable) + return YES; return NO; } //-------------------------------------------------------------------------- -#if 0 -// TODO: rows of hidden parts should look disable ... --(NSCell *) tableView:(NSTableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath -{ - NSCell *cell = [super tableView: tableView cellForRowAtIndexPath: indexPath]; - - if (cell == nil) - { - // cell.selectionStyle = UITableViewCellSelectionStyleNone; - // cell.selectionStyle = UITableViewCellSelectionStyleBlue; - // cell.userInteractionEnabled = NO; - } - - return cell; - -} -#endif - //-------------------------------------------------------------------------- - (void)tableViewSelectionDidChange:(NSNotification *)notification {