summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.cpp6
-rw-r--r--src/gui/windows/socialwindow.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 47627e664..ee68e53c1 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -418,7 +418,7 @@ void ChatWindow::prevTab()
tab = mChatTabs->getNumberOfTabs();
tab--;
- mChatTabs->setSelectedTabByPos(tab);
+ mChatTabs->setSelectedTabByIndex(tab);
}
void ChatWindow::nextTab()
@@ -432,7 +432,7 @@ void ChatWindow::nextTab()
if (tab == mChatTabs->getNumberOfTabs())
tab = 0;
- mChatTabs->setSelectedTabByPos(tab);
+ mChatTabs->setSelectedTabByIndex(tab);
}
void ChatWindow::closeTab() const
@@ -454,7 +454,7 @@ void ChatWindow::closeTab() const
void ChatWindow::defaultTab()
{
if (mChatTabs)
- mChatTabs->setSelectedTabByPos(static_cast<unsigned>(0));
+ mChatTabs->setSelectedTabByIndex(static_cast<unsigned>(0));
}
void ChatWindow::action(const gcn::ActionEvent &event)
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index 2779c497b..23251f427 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -1806,7 +1806,7 @@ void SocialWindow::nextTab()
if (tab == mTabs->getNumberOfTabs())
tab = 0;
- mTabs->setSelectedTabByPos(tab);
+ mTabs->setSelectedTabByIndex(tab);
}
void SocialWindow::prevTab()
@@ -1820,7 +1820,7 @@ void SocialWindow::prevTab()
tab = mTabs->getNumberOfTabs();
tab--;
- mTabs->setSelectedTabByPos(tab);
+ mTabs->setSelectedTabByIndex(tab);
}
void SocialWindow::updateAttackFilter()