summaryrefslogtreecommitdiff
path: root/src/gui/widgets/statspagebasic.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-26 22:58:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-26 22:58:31 +0300
commit182fe0545897aae420dddf92efc17784be622ebf (patch)
treed306d6706f928956211daed905f6547ec7bdb743 /src/gui/widgets/statspagebasic.cpp
parent83981f76348655507d225aca220893e668b09bdc (diff)
downloadmv-182fe0545897aae420dddf92efc17784be622ebf.tar.gz
mv-182fe0545897aae420dddf92efc17784be622ebf.tar.bz2
mv-182fe0545897aae420dddf92efc17784be622ebf.tar.xz
mv-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.cpp7
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,