Fix treatment of spaces when importing CSV files without quotes

When importing a CSV file without no quote characters no spaces were
imported. So this...
a,b b,c
...would become...
a,bb,c

Fix this by not checking for being in quote mode when not having
configured a quote char anyway.
This commit is contained in:
Martin Kleusberg
2014-07-20 18:12:46 +02:00
parent cd9a563568
commit b921fe58f3

View File

@@ -923,7 +923,7 @@ QStringList DBBrowserDB::decodeCSV(const QString & csvfilename, char sep, char q
} else if (c==32) {
// Only append blanks if we are inside of quotes
if (inquotemode) {
if (inquotemode || quote == 0) {
current.append(c);
}