summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 16:49:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 16:49:27 +0300
commit54af8ce9c6d972580d2935498e563988450b94f6 (patch)
tree4e870df77b37c22f874704ab0cbbd554cde79507 /src/gui/windows/socialwindow.cpp
parent81bd48dee406603164f35170bb2aa1e82c9fc338 (diff)
downloadmanaverse-54af8ce9c6d972580d2935498e563988450b94f6.tar.gz
manaverse-54af8ce9c6d972580d2935498e563988450b94f6.tar.bz2
manaverse-54af8ce9c6d972580d2935498e563988450b94f6.tar.xz
manaverse-54af8ce9c6d972580d2935498e563988450b94f6.zip
add actions for select next/previous tab in shortcuts window.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index 1c6b85153..8b1d0d79c 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -1819,30 +1819,14 @@ void SocialWindow::removePortal(const int x, const int y)
void SocialWindow::nextTab()
{
- if (!mTabs)
- return;
-
- int tab = mTabs->getSelectedTabIndex();
-
- tab++;
- if (tab == mTabs->getNumberOfTabs())
- tab = 0;
-
- mTabs->setSelectedTabByIndex(tab);
+ if (mTabs)
+ mTabs->selectNextTab();
}
void SocialWindow::prevTab()
{
- if (!mTabs)
- return;
-
- int tab = mTabs->getSelectedTabIndex();
-
- if (tab == 0)
- tab = mTabs->getNumberOfTabs();
- tab--;
-
- mTabs->setSelectedTabByIndex(tab);
+ if (mTabs)
+ mTabs->selectPrevTab();
}
void SocialWindow::updateAttackFilter()