diff options
author | rowanbeentje <rowan@beent.je> | 2011-08-25 23:50:17 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-08-25 23:50:17 +0000 |
commit | accb42e79d6f4c968b6219f05d4ffd669ad96fc3 (patch) | |
tree | 99db1a4bf3858368453b1df25fee78aea284654b /Source/SPDataImport.h | |
parent | 4f35896057fdc7b6e16c55cf4805177c00967f18 (diff) | |
download | sequelpro-accb42e79d6f4c968b6219f05d4ffd669ad96fc3.tar.gz sequelpro-accb42e79d6f4c968b6219f05d4ffd669ad96fc3.tar.bz2 sequelpro-accb42e79d6f4c968b6219f05d4ffd669ad96fc3.zip |
- If the field mapper was cancelled, abort the CSV import at once to avoid crashes if a new table name to create was entered
Diffstat (limited to 'Source/SPDataImport.h')
-rw-r--r-- | Source/SPDataImport.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/SPDataImport.h b/Source/SPDataImport.h index b9810201..1b668be9 100644 --- a/Source/SPDataImport.h +++ b/Source/SPDataImport.h @@ -25,6 +25,12 @@ #import <MCPKit/MCPKit.h> +typedef enum { + SPFieldMapperInProgress = 1, + SPFieldMapperCompleted = 2, + SPFieldMapperCancelled = 3 +} SPFieldMapperSheetStatus; + @class SPFieldMapperController, SPFileHandle; @interface SPDataImport : NSObject @@ -89,7 +95,7 @@ NSString *lastFilename; NSString *csvImportHeaderString; NSString *csvImportTailString; - NSInteger fieldMapperSheetStatus; + SPFieldMapperSheetStatus fieldMapperSheetStatus; NSInteger numberOfImportDataColumns; BOOL fieldMappingArrayHasGlobalVariables; BOOL csvImportMethodHasTail; |