Mac: Allow selecting bundles in the disk prefs

Users should be able to select sparsebundles in the disk prefs, but should
still be able to navigate inside .sheepvm bundles.

See https://github.com/cebix/macemu/pull/25#issuecomment-15900806
This commit is contained in:
Dave Vasilevsky 2013-04-08 14:00:48 -04:00
parent 44c7e447a7
commit 3914fd4a20

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]