diff options
author | stuconnolly <stuart02@gmail.com> | 2010-07-02 19:21:10 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-07-02 19:21:10 +0000 |
commit | 94511f3cec3b02dfb05b9aef1cb8fb0eece2924e (patch) | |
tree | 113c41a769c6c040e7e4a39da7c6ae9f483552f1 | |
parent | d643a46ce890dccaff49809d5a4f086c8a492814 (diff) | |
download | sequelpro-94511f3cec3b02dfb05b9aef1cb8fb0eece2924e.tar.gz sequelpro-94511f3cec3b02dfb05b9aef1cb8fb0eece2924e.tar.bz2 sequelpro-94511f3cec3b02dfb05b9aef1cb8fb0eece2924e.zip |
Improve the preservation of the selected output path of exports between openings of the export dialog.
-rw-r--r-- | Source/SPExportController.m | 6 |
1 files changed, 2 insertions, 4 deletions
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 |