diff options
author | rowanbeentje <rowan@beent.je> | 2011-09-12 00:55:51 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-09-12 00:55:51 +0000 |
commit | 6ce6d636928bec9c9ef80343eb53018a43b608ee (patch) | |
tree | 52fefe5b68b0b56e3d03c7e988b9b7d4d85b043e | |
parent | e4dc361f7cd4b8a5062f58548427a5f542917a7f (diff) | |
download | sequelpro-6ce6d636928bec9c9ef80343eb53018a43b608ee.tar.gz sequelpro-6ce6d636928bec9c9ef80343eb53018a43b608ee.tar.bz2 sequelpro-6ce6d636928bec9c9ef80343eb53018a43b608ee.zip |
- Speculative fix for Issue #1154 (problems using some field separators during CSV import)
-rw-r--r-- | Source/SPDataImport.m | 3 |
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"]; |