Changeset 11688 for trunk/macosx/Controller.m
- Timestamp:
- Jan 15, 2011, 6:44:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r11684 r11688 391 391 392 392 [[SUUpdater sharedUpdater] setDelegate: self]; 393 f UpdateInProgress= NO;393 fQuitRequested = NO; 394 394 395 395 fPauseOnLaunch = (GetCurrentKeyModifiers() & (optionKey | rightOptionKey)) != 0; … … 678 678 - (NSApplicationTerminateReply) applicationShouldTerminate: (NSApplication *) sender 679 679 { 680 if (!f UpdateInProgress&& [fDefaults boolForKey: @"CheckQuit"])680 if (!fQuitRequested && [fDefaults boolForKey: @"CheckQuit"]) 681 681 { 682 682 NSInteger active = 0, downloading = 0; … … 4359 4359 - (void) updaterWillRelaunchApplication: (SUUpdater *) updater 4360 4360 { 4361 f UpdateInProgress= YES;4361 fQuitRequested = YES; 4362 4362 } 4363 4363 … … 4441 4441 break; 4442 4442 4443 case TR_RPC_SESSION_CLOSE: 4444 fQuitRequested = YES; 4445 [NSApp performSelectorOnMainThread: @selector(terminate:) withObject: self waitUntilDone: NO]; 4446 break; 4447 4443 4448 default: 4444 4449 NSAssert1(NO, @"Unknown RPC command received: %d", type);
Note: See TracChangeset
for help on using the changeset viewer.