aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-07-09 08:20:46 +0200
committerRenaud G <renaud@rolisteam.org>2015-07-09 08:20:46 +0200
commit11df3a32160259768d58ff26b24b28d9d68571ca (patch)
tree5980fa6fba34237e2e19f129c522bf628e74e000 /diceparser.cpp
parent9f72316b05176c7d94be1289880731b4311131c2 (diff)
downloadOneRoll-11df3a32160259768d58ff26b24b28d9d68571ca.tar.gz
OneRoll-11df3a32160259768d58ff26b24b28d9d68571ca.zip
fix the nothing understood error
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp5
1 files changed, 4 insertions, 1 deletions
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;
}