aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataImport.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-09-02 12:21:00 +0000
committerBibiko <bibiko@eva.mpg.de>2010-09-02 12:21:00 +0000
commitb66f9afbcd48b62d8adc3cfc5f27da099b129646 (patch)
tree0daf7965e82cc7b4cdc53e3f28312ce51dbc5473 /Source/SPDataImport.m
parent0bab4c7a36a409639ff9b419ef8a5e57f527e474 (diff)
downloadsequelpro-b66f9afbcd48b62d8adc3cfc5f27da099b129646.tar.gz
sequelpro-b66f9afbcd48b62d8adc3cfc5f27da099b129646.tar.bz2
sequelpro-b66f9afbcd48b62d8adc3cfc5f27da099b129646.zip
• first preparations to support a CSV import into a new table (not yet executable)
- changed order of target tables: New Table, Refresh List, separator, list of all names - cleaned code a bit * removed check for available tables in SPDataImport, now if no table in db the CSV Field Mapper opens in "New Table" mode
Diffstat (limited to 'Source/SPDataImport.m')
-rw-r--r--Source/SPDataImport.m22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m
index 98129f19..c9b5664b 100644
--- a/Source/SPDataImport.m
+++ b/Source/SPDataImport.m
@@ -1123,17 +1123,17 @@
fieldMappingImportArrayIsPreview = dataIsPreviewData;
// If there's no tables to select, error
- if (![[tablesListInstance allTableNames] count]) {
- [self closeAndStopProgressSheet];
- SPBeginAlertSheet(NSLocalizedString(@"Error", @"error"),
- NSLocalizedString(@"OK", @"OK button"),
- nil, nil,
- [tableDocumentInstance parentWindow], self,
- nil, nil,
- NSLocalizedString(@"Can't import CSV data into a database without any tables!", @"error text when trying to import csv data, but we have no tables in the db")
- );
- return FALSE;
- }
+ // if (![[tablesListInstance allTableNames] count]) {
+ // [self closeAndStopProgressSheet];
+ // SPBeginAlertSheet(NSLocalizedString(@"Error", @"error"),
+ // NSLocalizedString(@"OK", @"OK button"),
+ // nil, nil,
+ // [tableDocumentInstance parentWindow], self,
+ // nil, nil,
+ // NSLocalizedString(@"Can't import CSV data into a database without any tables!", @"error text when trying to import csv data, but we have no tables in the db")
+ // );
+ // return FALSE;
+ // }
// Set the import array
if (fieldMappingImportArray) [fieldMappingImportArray release];