aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldMapperController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-07-01 06:22:02 +0000
committerBibiko <bibiko@eva.mpg.de>2010-07-01 06:22:02 +0000
commit51881a8ae93b14ac7a3007bcd66bad670e91ba49 (patch)
tree52d727a292b8f29e28687ee625dcda3a5ea1a94c /Source/SPFieldMapperController.m
parent8a9e173830a88ac826449640f4f8b871c6b27cb4 (diff)
downloadsequelpro-51881a8ae93b14ac7a3007bcd66bad670e91ba49.tar.gz
sequelpro-51881a8ae93b14ac7a3007bcd66bad670e91ba49.tar.bz2
sequelpro-51881a8ae93b14ac7a3007bcd66bad670e91ba49.zip
• after opening spfs file reset tabBar by looking at setting for SPAlwaysShowWindowTabBar
• fixed CSV Import file display in NSPathControl if SP runs localized - the problem is very likely a bug in [NSPathControl setURL:]; that's why create a new temporary NSPathControl and set the GUI's NSPathControl via [NSPathControl setPathComponentCells:[tempPathControl pathComponentCells]] - this should fix i751 • resized some components in CSV Import sheet to fit for localizations a bit better
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];