enable the URL sheet's add button when shown if text is already entered

This commit is contained in:
Mitchell Livingston
2011-02-10 01:03:21 +00:00
parent 7fabe85b96
commit 7d9ce0df57

View File

@@ -44,6 +44,8 @@ NSString * urlString = @"";
[fTextField setStringValue: urlString];
[fTextField selectText: self];
[fOpenButton setEnabled: ![urlString isEqualToString: @""]];
}
- (IBAction) beginSheetForWindow: (NSWindow *) window