Fix crash when canceling download, fix a runtime warning in osx.

This commit is contained in:
Paul Chote
2011-01-20 17:23:23 +13:00
parent 792c82c2d4
commit b7357b1711
4 changed files with 37 additions and 18 deletions

View File

@@ -49,9 +49,9 @@
- (void)launchFilePicker:(NSArray *)args
{
hide_menubar_if_necessary();
[NSApp activateIgnoringOtherApps:YES];
hide_menubar_if_necessary();
NSOpenPanel *op = [NSOpenPanel openPanel];
[op setLevel:CGShieldingWindowLevel()];
[op setAllowsMultipleSelection:NO];