diff options
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 0602c671..f6e95059 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -475,6 +475,7 @@ ChatWindow::removeChannel(short channelId) void ChatWindow::createNewChannelTab(std::string channelName) { + // Create new channel BrowserBox *textOutput = new BrowserBox(BrowserBox::AUTO_WRAP); textOutput->setOpaque(false); textOutput->disableLinksAndUserColors(); @@ -483,11 +484,17 @@ ChatWindow::createNewChannelTab(std::string channelName) scrollArea->setScrollPolicy(gcn::ScrollArea::SHOW_NEVER, gcn::ScrollArea::SHOW_ALWAYS); scrollArea->setOpaque(false); + // Add channel to the tabbed area mChatTabs->addTab(channelName, scrollArea); mChannelOutput[channelName] = textOutput; mChannelScroll[channelName] = scrollArea; mScrollArea = scrollArea; mTextOutput = textOutput; + + // Ask for channel users + Net::ChatServer::getUserList(channelName); + + // Update UI logic(); } |