From: Mitchell Livingston Date: Thu, 10 Feb 2011 01:03:21 +0000 (+0000) Subject: enable the URL sheet's add button when shown if text is already entered X-Git-Tag: 2.30b1~385 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d9ce0df57c907c16efa87236e4ae50f605bb721;p=transmission enable the URL sheet's add button when shown if text is already entered --- diff --git a/macosx/URLSheetWindowController.m b/macosx/URLSheetWindowController.m index 0f14c4b05..501f498fd 100644 --- a/macosx/URLSheetWindowController.m +++ b/macosx/URLSheetWindowController.m @@ -44,6 +44,8 @@ NSString * urlString = @""; [fTextField setStringValue: urlString]; [fTextField selectText: self]; + + [fOpenButton setEnabled: ![urlString isEqualToString: @""]]; } - (IBAction) beginSheetForWindow: (NSWindow *) window