diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-11 15:48:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-11 15:48:13 +0300 |
commit | 1db8072c112d0bc5b3cbf3b3151dfa8be9419189 (patch) | |
tree | 6fa6980acc0db8f1ee61a0b059bec1215fdc4731 /src/gui/windows/chatwindow.cpp | |
parent | 8de44a41862b3a0ff714e68169b6443a2a06b3aa (diff) | |
download | manaverse-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.gz manaverse-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.bz2 manaverse-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.tar.xz manaverse-1db8072c112d0bc5b3cbf3b3151dfa8be9419189.zip |
Add chat command for select debug tab.
New chat command: /debugtab
Alias: /debugchattab
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index c3b78f066..4799f65f4 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -374,7 +374,7 @@ void ChatWindow::nextTab() mChatTabs->setSelectedTabByIndex(tab); } -void ChatWindow::selectGeneralTab() +void ChatWindow::selectTabByType(const ChatTabType::Type &type) { if (!mChatTabs) return; @@ -384,7 +384,7 @@ void ChatWindow::selectGeneralTab() { ChatTab *const tab = dynamic_cast<ChatTab*>( mChatTabs->getTabByIndex(f)); - if (tab && tab->getType() == ChatTabType::INPUT) + if (tab && tab->getType() == type) { mChatTabs->setSelectedTab(tab); break; |