summaryrefslogtreecommitdiff
path: root/src/gui/widgets/statspagebasic.cpp
diff options
context:
space:
mode:
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,