diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPExportController.m | 10 |
1 files 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 |