From 11df3a32160259768d58ff26b24b28d9d68571ca Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 9 Jul 2015 08:20:46 +0200 Subject: fix the nothing understood error --- diceparser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/diceparser.cpp b/diceparser.cpp index 4a972d6..3831400 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -176,9 +176,12 @@ bool DiceParser::parseLine(QString str) { return true; } + else if(m_errorMap.isEmpty()) + { + m_errorMap.insert(ExecutionNode::NOTHING_UNDERSTOOD,QObject::tr("Nothing was understood")); + } else { - m_errorMap.insert(ExecutionNode::NOTHING_UNDERSTOOD,QObject::tr("Nothing was understood")); return false; } -- cgit v1.2.3-70-g09d2