diff options
| author | 2019-06-05 23:40:18 +0200 | |
|---|---|---|
| committer | 2019-06-29 15:53:31 +0200 | |
| commit | 69373b4ec96b7d510e16fccfa1b9f2a2ec790508 (patch) | |
| tree | d68519efb89bbdb3fbfa7ef998489682e3d7f444 | |
| parent | 46b82f84e5c3407d4ce3f2d38c4309aa074b9a9e (diff) | |
| download | OneRoll-69373b4ec96b7d510e16fccfa1b9f2a2ec790508.tar.gz OneRoll-69373b4ec96b7d510e16fccfa1b9f2a2ec790508.zip | |
clang format
| -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(); } + |