diff options
| author | 2015-07-09 08:20:46 +0200 | |
|---|---|---|
| committer | 2015-07-09 08:20:46 +0200 | |
| commit | 11df3a32160259768d58ff26b24b28d9d68571ca (patch) | |
| tree | 5980fa6fba34237e2e19f129c522bf628e74e000 | |
| parent | 9f72316b05176c7d94be1289880731b4311131c2 (diff) | |
| download | OneRoll-11df3a32160259768d58ff26b24b28d9d68571ca.tar.gz OneRoll-11df3a32160259768d58ff26b24b28d9d68571ca.zip | |
fix the nothing understood error
| -rw-r--r-- | diceparser.cpp | 5 |
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; } |