1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-04 13:32:19 +00:00

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

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;
}