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

Comparing SheepShaver/src/MacOSX/Launcher/VMSettingsController.mm (file contents):
Revision 1.1 by asvitkine, 2009-08-02T18:34:57Z vs.
Revision 1.2 by asvitkine, 2009-08-02T20:24:38Z

# Line 46 | Line 46 | void prefs_exit()
46  
47   - (id) init
48   {
49 <  return [super initWithWindowNibName:@"VMSettingsWindow"];
49 >  self = [super initWithWindowNibName:@"VMSettingsWindow"];
50 >
51 >        cancelWasClicked = NO;
52 >
53 >        return self;
54   }
55  
56   - (int) numberOfRowsInTableView: (NSTableView *) table
# Line 289 | Line 293 | static NSString *makeRelativeIfNecessary
293    PrefsExit();
294          [[self window] close];
295          [NSApp stopModal];
296 +        cancelWasClicked = YES;
297   }
298  
299   - (void) saveChanges: (id) sender
# Line 346 | Line 351 | static NSString *makeRelativeIfNecessary
351  
352          [[self window] close];
353          [NSApp stopModal];
354 +        cancelWasClicked = NO;
355 + }
356 +
357 + - (BOOL) cancelWasClicked
358 + {
359 +  return cancelWasClicked;
360   }
361  
362   - (void) dealloc

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines