|
|
@ -334,7 +334,6 @@ void CSVImportDlg::accept()
|
|
|
|
TQValueList<int> headers;
|
|
|
|
TQValueList<int> headers;
|
|
|
|
TQStringList list;
|
|
|
|
TQStringList list;
|
|
|
|
TQString name = getDatabaseName();
|
|
|
|
TQString name = getDatabaseName();
|
|
|
|
int i = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TQString q = "INSERT INTO " + name + " (";
|
|
|
|
TQString q = "INSERT INTO " + name + " (";
|
|
|
|
for( int c = 0; c < table->horizontalHeader()->count(); c++ ) {
|
|
|
|
for( int c = 0; c < table->horizontalHeader()->count(); c++ ) {
|
|
|
@ -375,7 +374,7 @@ void CSVImportDlg::accept()
|
|
|
|
|
|
|
|
|
|
|
|
TQSqlQuery query;
|
|
|
|
TQSqlQuery query;
|
|
|
|
if( !query.exec( line ) )
|
|
|
|
if( !query.exec( line ) )
|
|
|
|
qDebug( i18n("Could not import the following line:") + line );
|
|
|
|
qDebug( "%s", i18n("Could not import the following line:") + line );
|
|
|
|
//KMessageBox::error( this, i18n("Could not import the following line:") + line );
|
|
|
|
//KMessageBox::error( this, i18n("Could not import the following line:") + line );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|