aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'diceroller.cpp')
-rw-r--r--diceroller.cpp11
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();
}
+