Changeset 762


Ignore:
Timestamp:
Aug 13, 2006, 3:53:25 PM (15 years ago)
Author:
livings124
Message:

Don't allow row selection in peer table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r761 r762  
    3636#define TAB_ACTIVITY_IDENT @"Activity"
    3737#define TAB_PEERS_IDENT @"Peers"
     38#define TAB_FILES_IDENT @"Files"
    3839#define TAB_OPTIONS_IDENT @"Options"
    39 #define TAB_FILES_IDENT @"Files"
    4040
    4141//15 spacing at the bottom of each tab
     
    4343#define TAB_ACTIVITY_HEIGHT 214.0
    4444#define TAB_PEERS_HEIGHT 250.0
     45#define TAB_FILES_HEIGHT 250.0
    4546#define TAB_OPTIONS_HEIGHT 116.0
    46 #define TAB_FILES_HEIGHT 250.0
    4747
    4848@interface InfoWindowController (Private)
     
    387387    else if ([identifier isEqualToString: TAB_PEERS_IDENT])
    388388        height = TAB_PEERS_HEIGHT;
     389    else if ([identifier isEqualToString: TAB_FILES_IDENT])
     390        height = TAB_FILES_HEIGHT;
    389391    else if ([identifier isEqualToString: TAB_OPTIONS_IDENT])
    390392        height = TAB_OPTIONS_HEIGHT;
    391     else if ([identifier isEqualToString: TAB_FILES_IDENT])
    392         height = TAB_FILES_HEIGHT;
    393393    else
    394394        height = TAB_INFO_HEIGHT;
     
    472472        [tableView reloadData];
    473473    }
     474}
     475
     476- (BOOL) tableView: (NSTableView *) tableView shouldSelectRow:(int) row
     477{
     478    return tableView != fPeerTable;
    474479}
    475480
Note: See TracChangeset for help on using the changeset viewer.