From 7a8fbb837e7cb758e3573383860782c378255a92 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 25 Jun 2007 22:35:18 +0000 Subject: [PATCH] apply patch from #324 --- macosx/InfoWindowController.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index ff071e98d..be3fd9a7d 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -1085,6 +1085,12 @@ NSTextField * field = upload ? fUploadLimitField : fDownloadLimitField; [field setHidden: setting != NSOnState]; + if (setting == NSOnState) + { + [field selectText: self]; + [[self window] makeKeyAndOrderFront:self]; + } + NSTextField * label = upload ? fUploadLimitLabel : fDownloadLimitLabel; [label setHidden: setting != NSOnState]; } @@ -1131,6 +1137,11 @@ [torrent setRatioSetting: setting]; [fRatioLimitField setHidden: setting != NSOnState]; + if (setting == NSOnState) + { + [fRatioLimitField selectText: self]; + [[self window] makeKeyAndOrderFront:self]; + } [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil]; }