ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/PrefsEditor.mm
(Generate patch)

Comparing BasiliskII/src/MacOSX/PrefsEditor.mm (file contents):
Revision 1.17 by nigel, 2005-09-19T06:02:47Z vs.
Revision 1.18 by nigel, 2005-10-15T10:38:22Z

# Line 150 | Line 150 | extern string UserPrefsPath;   // from pre
150  
151   - (void) dealloc
152   {
153 +        [home     release];
154          [volsDS   release];
155          [SCSIds   release];
156          [lockCell release];
# Line 261 | Line 262 | extern string UserPrefsPath;   // from pre
262   - (IBAction) ChangeBootFrom: (NSMatrix *)sender
263   {
264          if ( [sender selectedCell] == (id)bootFromCD )
265 +        {
266 +                [disableCD setState: NSOffState];
267 +
268                  PrefsReplaceInt32("bootdriver", CDROMRefNum);
269 +        }
270          else
271                  PrefsReplaceInt32("bootdriver", 0);
272          edited = YES;
# Line 275 | Line 280 | extern string UserPrefsPath;   // from pre
280  
281   - (IBAction) ChangeDisableCD: (NSButton *)sender
282   {
283 <        PrefsReplaceBool("nocdrom", [disableCD state]);
283 >        int disabled = [disableCD state];
284 >
285 >        PrefsReplaceBool("nocdrom", disabled);
286 >        if ( disabled )
287 >        {
288 >                [bootFromAny setState: NSOnState];
289 >                [bootFromCD setState: ![disableCD state]];
290 >        }
291          edited = YES;
292   }
293  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines