diff options
author | David Athay <ko2fan@gmail.com> | 2008-04-16 12:59:02 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-04-16 12:59:02 +0000 |
commit | 0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01 (patch) | |
tree | 6f1911b6d5e8a0e2d43b46c79add9bb0c544f93c /src/gui/widgets/tabbedarea.cpp | |
parent | e2e4ceb9fa8a72ad94853f74724676fff82b15c0 (diff) | |
download | mana-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.gz mana-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.bz2 mana-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.xz mana-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.zip |
Fixed online status so that users are shown as online
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 20c100e5..a22c795c 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -73,13 +73,15 @@ void TabbedArea::draw(gcn::Graphics *graphics) gcn::Widget* TabbedArea::getWidget(const std::string &name) { - unsigned int i; - for (i = 0; i < mTabs.size(); i++) + std::vector< std::pair<gcn::Tab*, gcn::Widget*> >::iterator itr = mTabs.begin(), + itr_end = mTabs.end(); + while (itr != itr_end) { - if (mTabs[i].first->getCaption() == name) + if ((*itr).first->getCaption() == name) { - return mTabs[i].second; + return (*itr).second; } + ++itr; } return NULL; |