diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-07-01 06:22:02 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-07-01 06:22:02 +0000 |
commit | 51881a8ae93b14ac7a3007bcd66bad670e91ba49 (patch) | |
tree | 52d727a292b8f29e28687ee625dcda3a5ea1a94c /Source | |
parent | 8a9e173830a88ac826449640f4f8b871c6b27cb4 (diff) | |
download | sequelpro-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')
-rw-r--r-- | Source/SPAppController.m | 6 | ||||
-rw-r--r-- | Source/SPFieldMapperController.m | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 46709aac..2d719c95 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -406,8 +406,12 @@ // Select active tab [newWindowController selectTabAtIndex:[[window objectForKey:@"selectedTabIndex"] intValue]]; + // Reset setHideForSingleTab - [newWindowController setHideForSingleTab:YES]; + if([[NSUserDefaults standardUserDefaults] objectForKey:SPAlwaysShowWindowTabBar]) + [newWindowController setHideForSingleTab:[[NSUserDefaults standardUserDefaults] boolForKey:SPAlwaysShowWindowTabBar]]; + else + [newWindowController setHideForSingleTab:YES]; } 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]; |