summaryrefslogtreecommitdiff
path: root/src/gui
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
parent4092dbd156f84e00c1603274f534963d9f98667f (diff)
downloadmana-client-db2f9e4c7af87074f75af14a183db41e5ccdcc21.tar.gz
mana-client-db2f9e4c7af87074f75af14a183db41e5ccdcc21.tar.bz2
mana-client-db2f9e4c7af87074f75af14a183db41e5ccdcc21.tar.xz
mana-client-db2f9e4c7af87074f75af14a183db41e5ccdcc21.zip
Adding missing update for attributes in StatusWindow
Reviewed-by: Thorbjorn
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/statuswindow.cpp13
-rw-r--r--src/gui/statuswindow.h2
2 files changed, 11 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);
diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h
index a1fc4b4b..d99368b8 100644
--- a/src/gui/statuswindow.h
+++ b/src/gui/statuswindow.h
@@ -59,6 +59,8 @@ class StatusWindow : public Window
std::string update(int id);
+ void updateAttrs();
+
void setPointsNeeded(int id, int needed);
void addAttribute(int id, const std::string &name, bool modifiable,