]> granicus.if.org Git - transmission/commitdiff
enable the URL sheet's add button when shown if text is already entered
authorMitchell Livingston <livings124@transmissionbt.com>
Thu, 10 Feb 2011 01:03:21 +0000 (01:03 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Thu, 10 Feb 2011 01:03:21 +0000 (01:03 +0000)
macosx/URLSheetWindowController.m

index 0f14c4b0550375c1db106790a55de2b788b1b6e0..501f498fd26e8c5aefb39bee48ec64a285497d81 100644 (file)
@@ -44,6 +44,8 @@ NSString * urlString = @"";
     
     [fTextField setStringValue: urlString];
     [fTextField selectText: self];
+    
+    [fOpenButton setEnabled: ![urlString isEqualToString: @""]];
 }
 
 - (IBAction) beginSheetForWindow: (NSWindow *) window