diff options
| -rw-r--r-- | diceroller.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/diceroller.cpp b/diceroller.cpp index d343fcb..de501e9 100644 --- a/diceroller.cpp +++ b/diceroller.cpp @@ -179,9 +179,10 @@ QString DiceRoller::getError() const void DiceRoller::setError(const QString& error) { - if(m_error != error) - { - m_error= error; - emit errorOccurs(); - } + if(m_error == error) + return; + + m_error= error; + emit errorOccurs(); } + |