aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-07-08 16:01:17 +0200
committerRenaud G <renaud@rolisteam.org>2015-07-08 16:01:17 +0200
commit8ebc9b3e0afe3104876f1df4b4b27a9cf272ad25 (patch)
treeaeff88915d3b61c3ab8e0de96fad5c3874440134 /diceparser.cpp
parentb5c5cfadeb8546274048c1e3c1d97f7c2223a042 (diff)
parent9f72316b05176c7d94be1289880731b4311131c2 (diff)
downloadOneRoll-8ebc9b3e0afe3104876f1df4b4b27a9cf272ad25.tar.gz
OneRoll-8ebc9b3e0afe3104876f1df4b4b27a9cf272ad25.zip
Merge branch 'master' of github.com:obiwankennedy/DiceParser into rangeInList
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 4f0645e..1ab5e30 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -172,13 +172,14 @@ bool DiceParser::parseLine(QString str)
}
}
- if(m_errorMap.isEmpty())
+ if((m_errorMap.isEmpty())&&(NULL!=newNode))
{
return true;
}
else
{
- return false;
+ m_errorMap.insert(ExecutionNode::NOTHING_UNDERSTOOD,QObject::tr("Nothing was understood"));
+ return false;
}
}