diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-26 21:45:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-26 22:01:51 +0300 |
commit | 5889bd94d241b8454268804861a67c79315a7731 (patch) | |
tree | b37aaec28083110308fbbc5fa3a2c4bb07ce2ed7 /src/gui/widgets/tabbedarea.cpp | |
parent | bae784c3718b2d28bef80ef57f23c47cc4342c64 (diff) | |
download | manaplus-5889bd94d241b8454268804861a67c79315a7731.tar.gz manaplus-5889bd94d241b8454268804861a67c79315a7731.tar.bz2 manaplus-5889bd94d241b8454268804861a67c79315a7731.tar.xz manaplus-5889bd94d241b8454268804861a67c79315a7731.zip |
add chat command for uploading main config.xml
New chat command: /uploadconfig
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 70e098cd3..da6c89d1a 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -236,6 +236,16 @@ bool TabbedArea::isTabSelected(const unsigned int index) const return mSelectedTab == mTabs[index].first; } +bool TabbedArea::isTabPresent(const Tab *const tab) const +{ + FOR_EACH (TabContainer::const_iterator, it, mTabs) + { + if ((*it).first == tab || (*it).second == tab) + return true; + } + return false; +} + bool TabbedArea::isTabSelected(const Tab *const tab) const { return mSelectedTab == tab; |