summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 12:05:04 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 12:05:21 -0600
commit057c4592a0260af3efca3f7871abf24d8ed77c5d (patch)
tree8e6fbbac9489b5693b1772b75663283aebfe6435 /src/gui/chat.cpp
parent29286a78abf94f71fcddad3b7e78a482d287fecd (diff)
downloadmana-057c4592a0260af3efca3f7871abf24d8ed77c5d.tar.gz
mana-057c4592a0260af3efca3f7871abf24d8ed77c5d.tar.bz2
mana-057c4592a0260af3efca3f7871abf24d8ed77c5d.tar.xz
mana-057c4592a0260af3efca3f7871abf24d8ed77c5d.zip
Fix switching to new tabs on /query
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 72c1976d..eca224fc 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -493,5 +493,8 @@ ChatTab *ChatWindow::addWhisperTab(const std::string &nick, bool switchTo)
ChatTab *ret = mWhispers[tempNick] = new WhisperTab(nick);
+ if (switchTo)
+ mChatTabs->setSelectedTab(ret);
+
return ret;
}