Skip to content

Commit

Permalink
Fix some more deprecation in 10.7 relating to file selection modal di…
Browse files Browse the repository at this point in the history
…alogs
  • Loading branch information
victorquinn committed Apr 23, 2012
1 parent 63a59a2 commit 429498e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SCController.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ - (IBAction)openLocation:(id)sender;
- (IBAction)browse:(id)sender;
{
NSOpenPanel *openPanel = [NSOpenPanel openPanel];
int result = [openPanel runModalForDirectory:nil file:nil types:nil];
int result = [openPanel runModal];

if (NSOKButton == result) {
[self clear:self];
[self setCanExecute:NO];
[self setWSDLURLString:[openPanel filename]];
[self setWSDLURLString:[[openPanel URL] path]];
[self parseWSDL:self];
}
}
Expand Down

0 comments on commit 429498e

Please sign in to comment.