aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.m6
-rw-r--r--Source/SPFieldMapperController.m8
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];