QxtCsvModel: never consider an explicitly-specified separator as a line break

This commit is contained in:
Adam Higerd 2011-08-22 20:37:35 -05:00
parent 6166dcb608
commit 2399c8db90

View File

@ -213,7 +213,7 @@ void QxtCsvModel::setSource(QIODevice *file, bool withHeader, QChar separator, Q
readCR = true;
else
readCR = false;
if(ch.category() == QChar::Separator_Line || ch.category() == QChar::Separator_Paragraph || ch.category() == QChar::Other_Control) {
if(ch != separator && (ch.category() == QChar::Separator_Line || ch.category() == QChar::Separator_Paragraph || ch.category() == QChar::Other_Control)) {
row << field;
field.clear();
if(!row.isEmpty()) {