Fix regression introduced by 1ca92cdde3

Turns out this doesn work as expected. So we have to convert the
QVariant to int and then case it to char instead.
This commit is contained in:
Martin Kleusberg
2017-11-02 22:39:31 +01:00
parent 69dc78da3a
commit fae7235548

View File

@@ -57,8 +57,8 @@ ImportCsvDialog::ImportCsvDialog(const QStringList &filenames, DBBrowserDB* db,
ui->checkboxHeader->setChecked(Settings::getValue("importcsv", "firstrowheader").toBool());
ui->checkBoxTrimFields->setChecked(Settings::getValue("importcsv", "trimfields").toBool());
ui->checkBoxSeparateTables->setChecked(Settings::getValue("importcsv", "separatetables").toBool());
setSeparatorChar(Settings::getValue("importcsv", "separator").toChar());
setQuoteChar(Settings::getValue("importcsv", "quotecharacter").toChar());
setSeparatorChar(Settings::getValue("importcsv", "separator").toInt());
setQuoteChar(Settings::getValue("importcsv", "quotecharacter").toInt());
setEncoding(Settings::getValue("importcsv", "encoding").toString());
ui->checkboxHeader->blockSignals(false);