Don't assume Apple meant visible windows with hasVisibleWindows: when they really meant hasVisibleAndMinimizedWindows.

This commit is contained in:
Mitchell Livingston 2006-06-22 06:32:27 +00:00
parent 9248902bc3
commit 6aeb08af3e
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ static void sleepCallBack(void * controller, io_service_t y,
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
{
if (!visibleWindows)
if (![fWindow isVisible] && ![[fPrefsController window] isVisible])
[fWindow makeKeyAndOrderFront: nil];
return NO;
}