Merge pull request #46 from vasi/launcher-add-bundle

Mac: Allow selecting bundles in the disk prefs
This commit is contained in:
asvitkine 2013-08-11 10:10:15 -07:00
commit 0a010b8447

View File

@ -211,7 +211,7 @@ static NSString *makeRelativeIfNecessary(NSString *path)
- (IBAction) addDisk: (id) sender
{
NSOpenPanel *open = [NSOpenPanel openPanel];
[open setCanChooseDirectories:NO];
[open setCanChooseDirectories:YES];
[open setAllowsMultipleSelection:NO];
[open setTreatsFilePackagesAsDirectories:YES];
[open beginSheetForDirectory: [[NSFileManager defaultManager] currentDirectoryPath]