diff options
| author | 2015-07-08 08:14:14 +0200 | |
|---|---|---|
| committer | 2015-07-08 08:14:14 +0200 | |
| commit | 9dade3a68ffa28a681701dcd7d4d1bc0d136e3b0 (patch) | |
| tree | dceff671cbaad14c4dcf23ed369be1ed51b6c8ae /diceparser.cpp | |
| parent | 775897c44bb8ff27733598dfad9733afb98143d0 (diff) | |
| download | OneRoll-9dade3a68ffa28a681701dcd7d4d1bc0d136e3b0.tar.gz OneRoll-9dade3a68ffa28a681701dcd7d4d1bc0d136e3b0.zip | |
add management of understood commands
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index 570c96b..4a972d6 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; } } |