diff options
author | stuconnolly <stuart02@gmail.com> | 2010-06-30 02:44:22 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-06-30 02:44:22 +0000 |
commit | 21008b626e077aefb28b7ef24e202b3a8ded4886 (patch) | |
tree | dd19a8ed39ed55a497e85adde58b4aa98f0ea371 | |
parent | 39cca06cbde12cb5c9c014ac86015ae541b8dfbb (diff) | |
download | sequelpro-21008b626e077aefb28b7ef24e202b3a8ded4886.tar.gz sequelpro-21008b626e077aefb28b7ef24e202b3a8ded4886.tar.bz2 sequelpro-21008b626e077aefb28b7ef24e202b3a8ded4886.zip |
Preserve the selected output path of exports between openings of the export dialog.
-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 |