aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-07-09 08:55:39 +0000
committerstuconnolly <stuart02@gmail.com>2010-07-09 08:55:39 +0000
commite8e45feb282afd0904675e30f0cdc65d08a6acaa (patch)
treec87da0c92ea79e47e74ccd49ba1126e1e1337de3 /Source/SPExportController.m
parent54c9b6d740c05e9626ebf10b77b4da51726ca6dc (diff)
downloadsequelpro-e8e45feb282afd0904675e30f0cdc65d08a6acaa.tar.gz
sequelpro-e8e45feb282afd0904675e30f0cdc65d08a6acaa.tar.bz2
sequelpro-e8e45feb282afd0904675e30f0cdc65d08a6acaa.zip
When searching for the location of the user's Desktop as the default location of exports, change the search domain to NSAllDomainsMask to accommodate home directories which are not on the startup volume.
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r--Source/SPExportController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index 812e5cd1..6aa2c3a6 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -117,7 +117,7 @@
// Prevents the background colour from changing when clicked
[[exportCustomFilenameViewLabelButton cell] setHighlightsBy:NSNoCellMask];
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDesktopDirectory, NSUserDomainMask, YES);
+ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDesktopDirectory, NSAllDomainsMask, 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()];