diff options
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r-- | src/gui/statuswindow.cpp | 13 |
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); |