Changeset 900

Show
Ignore:
Timestamp:
10/30/04 18:48:53 (4 years ago)
Author:
morris
Message:

make sure to not attempt to select a screen that has been removed since last we ran

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/FHController.m

    r895 r900  
    1 /* $Id: FHController.m,v 1.15 2004/08/08 08:36:32 morris Exp $ */ 
     1/* $Id: FHController.m,v 1.16 2004/10/30 16:48:53 morris Exp $ */ 
    22 
    33/* 
     
    7676        } 
    7777         
    78         [_screenPopUpButton selectItemAtIndex:[FHSettings intForKey:FHScreen]]; 
     78        if([FHSettings intForKey:FHScreen] < [screens count]) 
     79                [_screenPopUpButton selectItemAtIndex:[FHSettings intForKey:FHScreen]]; 
    7980 
    8081        [_screenAutoSwitchButton setState:[FHSettings boolForKey:FHAutoSwitch]];