From db2f9e4c7af87074f75af14a183db41e5ccdcc21 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Wed, 8 Sep 2010 16:22:28 +0200 Subject: Adding missing update for attributes in StatusWindow Reviewed-by: Thorbjorn --- src/gui/statuswindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/gui/statuswindow.cpp') 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); -- cgit v1.2.3-70-g09d2