From 94511f3cec3b02dfb05b9aef1cb8fb0eece2924e Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 2 Jul 2010 19:21:10 +0000 Subject: Improve the preservation of the selected output path of exports between openings of the export dialog. --- Source/SPExportController.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Source/SPExportController.m') diff --git a/Source/SPExportController.m b/Source/SPExportController.m index d21e0079..6f072e84 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -434,10 +434,8 @@ [panel setCanChooseFiles:NO]; [panel setCanChooseDirectories:YES]; [panel setCanCreateDirectories:YES]; - - NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDesktopDirectory, NSUserDomainMask, YES); - - [panel beginSheetForDirectory:([paths count] > 0) ? [paths objectAtIndex:0] : NSHomeDirectory() + + [panel beginSheetForDirectory:nil file:nil modalForWindow:[self window] modalDelegate:self -- cgit v1.2.3