diff options
| author | 2015-07-10 00:05:06 +0200 | |
|---|---|---|
| committer | 2015-07-10 00:05:06 +0200 | |
| commit | 826c9e56249151e424701b4e078b37d73be3b5bf (patch) | |
| tree | af727dbb01e3d18dfb9c4c4b6969fab8bd72cf27 /diceparser.cpp | |
| parent | 933c19b4d9208eafa7cb25816a5da096b0e75e81 (diff) | |
| parent | 11df3a32160259768d58ff26b24b28d9d68571ca (diff) | |
| download | OneRoll-826c9e56249151e424701b4e078b37d73be3b5bf.tar.gz OneRoll-826c9e56249151e424701b4e078b37d73be3b5bf.zip | |
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'diceparser.cpp')
| -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; } |