diff options
| author | 2018-03-12 12:02:58 +0100 | |
|---|---|---|
| committer | 2018-03-12 12:02:58 +0100 | |
| commit | 618535737008d076ae687602381bb4e9a542fd91 (patch) | |
| tree | cb91cbadd67520c338b3b1c4f90c700df367c4ca /diceparser.cpp | |
| parent | 94f98fb14403d0442fce8fd427bb470e4d17e7b3 (diff) | |
| download | OneRoll-618535737008d076ae687602381bb4e9a542fd91.tar.gz OneRoll-618535737008d076ae687602381bb4e9a542fd91.zip | |
fix stuff on 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 311b3a4..d73404d 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -549,7 +549,10 @@ void DiceParser::getLastDiceResult(QList<ExportedDiceResult>& diceValuesList,boo } result = result->getPrevious(); } - diceValuesList.append(diceValues); + if(!diceValues.isEmpty()) + { + diceValuesList.append(diceValues); + } } } QString DiceParser::getDiceCommand() const |