aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldMapperController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFieldMapperController.m')
-rw-r--r--Source/SPFieldMapperController.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m
index d6f8185e..9f77398d 100644
--- a/Source/SPFieldMapperController.m
+++ b/Source/SPFieldMapperController.m
@@ -82,7 +82,13 @@
{
// Set source path
- [fileSourcePath setURL:[NSURL fileURLWithPath:sourcePath]];
+ // Note: [fileSourcePath setURL:[NSURL fileWithPath:sourcePath]] does NOT work
+ // if Sequel Pro runs localized. Reason unknown, it seems to be a NSPathControl bug.
+ // Ask HansJB for more info.
+ NSPathControl *pc = [[[NSPathControl alloc] initWithFrame:NSZeroRect] autorelease];
+ [pc setURL:[NSURL fileURLWithPath:sourcePath]];
+ if([pc pathComponentCells])
+ [fileSourcePath setPathComponentCells:[pc pathComponentCells]];
[fileSourcePath setDoubleAction:@selector(goBackToFileChooser:)];
[onupdateTextView setDelegate:theDelegate];