From 21008b626e077aefb28b7ef24e202b3a8ded4886 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 30 Jun 2010 02:44:22 +0000 Subject: Preserve the selected output path of exports between openings of the export dialog. --- Source/SPExportController.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/SPExportController.m b/Source/SPExportController.m index a16486b1..49e67536 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -112,6 +112,11 @@ [[exportTypeTabBar tabViewItemAtIndex:0] setView:exporterView]; [exportSQLInsertNValueTextField setIntegerValue:250]; + + NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDesktopDirectory, NSUserDomainMask, YES); + + // If found the set the default path to the user's desktop, otherwise use their home directory + [exportPathField setStringValue:([paths count] > 0) ? [paths objectAtIndex:0] : NSHomeDirectory()]; } #pragma mark - @@ -173,11 +178,6 @@ // Ensure interface validation [self switchTab:self]; - NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDesktopDirectory, NSUserDomainMask, YES); - - // If found the set the default path to the user's desktop, otherwise use their home directory - [exportPathField setStringValue:([paths count] > 0) ? [paths objectAtIndex:0] : NSHomeDirectory()]; - [NSApp beginSheet:[self window] modalForWindow:[tableDocumentInstance parentWindow] modalDelegate:self -- cgit v1.2.3