diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-26 22:58:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-26 22:58:31 +0300 |
commit | 182fe0545897aae420dddf92efc17784be622ebf (patch) | |
tree | d306d6706f928956211daed905f6547ec7bdb743 /src/gui/widgets/statspagebasic.cpp | |
parent | 83981f76348655507d225aca220893e668b09bdc (diff) | |
download | manaverse-182fe0545897aae420dddf92efc17784be622ebf.tar.gz manaverse-182fe0545897aae420dddf92efc17784be622ebf.tar.bz2 manaverse-182fe0545897aae420dddf92efc17784be622ebf.tar.xz manaverse-182fe0545897aae420dddf92efc17784be622ebf.zip |
Try update attributes/stats in stat pages in any changes.
Diffstat (limited to 'src/gui/widgets/statspagebasic.cpp')
-rw-r--r-- | src/gui/widgets/statspagebasic.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/statspagebasic.cpp b/src/gui/widgets/statspagebasic.cpp index 04252abf5..5732afd29 100644 --- a/src/gui/widgets/statspagebasic.cpp +++ b/src/gui/widgets/statspagebasic.cpp @@ -105,7 +105,7 @@ void StatsPageBasic::attributeChanged(const AttributesT id, if (it->second) it->second->update(); } - break; + return; case Attributes::PLAYER_CORR_POINTS: // Update all attributes @@ -115,12 +115,15 @@ void StatsPageBasic::attributeChanged(const AttributesT id, if (it->second) it->second->update(); } - break; + return; default: break; } PRAGMA45(GCC diagnostic pop) + const Attrs::const_iterator it = mAttrs.find(id); + if (it != mAttrs.end() && it->second) + it->second->update(); } void StatsPageBasic::setPointsNeeded(const AttributesT id, |