From 3605bec8e033782f21cac03a53c542fde229c9ea Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sat, 20 Jan 2018 13:03:50 +0100 Subject: [PATCH] Change 'unget' error message to untranslatable qWarning --- src/core/CsvParser.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/CsvParser.cpp b/src/core/CsvParser.cpp index 70493804e..6a963fc45 100644 --- a/src/core/CsvParser.cpp +++ b/src/core/CsvParser.cpp @@ -268,8 +268,10 @@ void CsvParser::getChar(QChar& c) { } void CsvParser::ungetChar() { - if (!m_ts.seek(m_lastPos)) - appendStatusMsg(QObject::tr("INTERNAL - unget lower bound exceeded"), true); + if (!m_ts.seek(m_lastPos)) { + qWarning("CSV Parser: unget lower bound exceeded"); + m_isGood = false; + } } void CsvParser::peek(QChar& c) { @@ -380,5 +382,5 @@ void CsvParser::appendStatusMsg(QString s, bool isCritical) { .append(",") .append(QString::number(m_currCol)) .append("\n"); - m_isGood = not isCritical; + m_isGood = !isCritical; }