aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataImport.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-09-12 00:55:51 +0000
committerrowanbeentje <rowan@beent.je>2011-09-12 00:55:51 +0000
commit6ce6d636928bec9c9ef80343eb53018a43b608ee (patch)
tree52fefe5b68b0b56e3d03c7e988b9b7d4d85b043e /Source/SPDataImport.m
parente4dc361f7cd4b8a5062f58548427a5f542917a7f (diff)
downloadsequelpro-6ce6d636928bec9c9ef80343eb53018a43b608ee.tar.gz
sequelpro-6ce6d636928bec9c9ef80343eb53018a43b608ee.tar.bz2
sequelpro-6ce6d636928bec9c9ef80343eb53018a43b608ee.zip
- Speculative fix for Issue #1154 (problems using some field separators during CSV import)
Diffstat (limited to 'Source/SPDataImport.m')
-rw-r--r--Source/SPDataImport.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m
index 77e7f676..ef92996a 100644
--- a/Source/SPDataImport.m
+++ b/Source/SPDataImport.m
@@ -297,6 +297,9 @@
- (void)importFileSheetDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo
{
+ // Ensure text inputs are completed, preventing dead character entry
+ [sheet makeFirstResponder:nil];
+
// Save values to preferences
[prefs setObject:[(NSOpenPanel*)sheet directory] forKey:@"openPath"];
[prefs setObject:[[importFormatPopup selectedItem] title] forKey:@"importFormatPopupValue"];