Don't make window modal for sheet.

This commit is contained in:
Mitchell Livingston 2006-08-06 17:12:32 +00:00
parent b8b994db63
commit ce66d15045
1 changed files with 2 additions and 7 deletions

View File

@ -475,11 +475,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
[panel setMessage: [NSString stringWithFormat: @"Select the download folder for \"%@\"", [torrent name]]];
[panel beginSheetForDirectory: nil file: nil types: nil
modalForWindow: fWindow modalDelegate: self didEndSelector:
@selector( folderChoiceClosed:returnCode:contextInfo: )
contextInfo: torrent];
[NSApp runModalForWindow: panel];
[panel beginSheetForDirectory: nil file: nil types: nil modalForWindow: fWindow modalDelegate: self
didEndSelector: @selector(folderChoiceClosed:returnCode:contextInfo:) contextInfo: torrent];
}
else
{
@ -514,8 +511,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
[fTorrents addObject: torrent];
}
[NSApp stopModal];
}
//called on by applescript