summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2010-09-08 16:22:28 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2010-09-08 16:22:28 +0200
commitdb2f9e4c7af87074f75af14a183db41e5ccdcc21 (patch)
treea05e156f1d9421efe3d9a0328ccd779bb5b9b5b3 /src/gui/statuswindow.cpp
parent4092dbd156f84e00c1603274f534963d9f98667f (diff)
downloadmana-db2f9e4c7af87074f75af14a183db41e5ccdcc21.tar.gz
mana-db2f9e4c7af87074f75af14a183db41e5ccdcc21.tar.bz2
mana-db2f9e4c7af87074f75af14a183db41e5ccdcc21.tar.xz
mana-db2f9e4c7af87074f75af14a183db41e5ccdcc21.zip
Adding missing update for attributes in StatusWindow
Reviewed-by: Thorbjorn
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index ede85133..91f832f5 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -246,10 +246,7 @@ std::string StatusWindow::update(int id)
mCorrectionPointsLabel->adjustSize();
}
- for (Attrs::iterator it = mAttrs.begin(); it != mAttrs.end(); it++)
- {
- it->second->update();
- }
+ updateAttrs();
}
else if (id == LEVEL)
{
@@ -272,6 +269,14 @@ std::string StatusWindow::update(int id)
return "";
}
+void StatusWindow::updateAttrs()
+{
+ for (Attrs::iterator it = mAttrs.begin(); it != mAttrs.end(); it++)
+ {
+ it->second->update();
+ }
+}
+
void StatusWindow::setPointsNeeded(int id, int needed)
{
Attrs::iterator it = mAttrs.find(id);