Changeset 9302 for trunk/macosx/Controller.m
- Timestamp:
- Oct 12, 2009, 12:48:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r9301 r9302 333 333 fPrefsController = [[PrefsController alloc] init]; 334 334 335 fQuitting = NO; 335 336 fSoundPlaying = NO; 336 337 … … 666 667 - (void) applicationWillTerminate: (NSNotification *) notification 667 668 { 669 fQuitting = YES; 670 668 671 //stop the Bonjour service 669 672 [[BonjourController defaultController] stop]; … … 704 707 const BOOL quickLookOpen = [NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanelSL sharedPreviewPanelExists] 705 708 && [[QLPreviewPanelSL sharedPreviewPanel] isVisible]; 709 if (quickLookOpen) 710 [[QLPreviewPanelSL sharedPreviewPanel] updateController]; 711 706 712 for (NSWindow * window in [NSApp windows]) 707 { 708 if (!quickLookOpen || window != [QLPreviewPanelSL sharedPreviewPanel]) //hide quicklook window last to avoid animation 709 [window orderOut: nil]; 710 } 711 712 if (quickLookOpen) 713 { 714 [[QLPreviewPanelSL sharedPreviewPanel] reloadData]; 715 [[QLPreviewPanelSL sharedPreviewPanel] orderOut: nil]; 716 } 713 [window orderOut: nil]; 717 714 718 715 [self showStatusBar: NO animate: NO]; … … 3129 3126 - (BOOL) acceptsPreviewPanelControl: (id) panel 3130 3127 { 3131 return YES;3128 return !fQuitting; 3132 3129 } 3133 3130
Note: See TracChangeset
for help on using the changeset viewer.