summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-20 12:19:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-21 21:09:08 +0300
commitc483cf600e74e7d38a7c0cc7d80435e97040c76c (patch)
treeba33088840361d3393398d6c9d52ebcfc894dd06 /src/gui/widgets/chattab.cpp
parent11619eed54e7b9df06c01cae46bd22aadc3f8dc7 (diff)
downloadmanaplus-c483cf600e74e7d38a7c0cc7d80435e97040c76c.tar.gz
manaplus-c483cf600e74e7d38a7c0cc7d80435e97040c76c.tar.bz2
manaplus-c483cf600e74e7d38a7c0cc7d80435e97040c76c.tar.xz
manaplus-c483cf600e74e7d38a7c0cc7d80435e97040c76c.zip
Add channel name to chat tabs.
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r--src/gui/widgets/chattab.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index ae18740a9..2b360789a 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -49,14 +49,16 @@
static const unsigned int MAX_WORD_SIZE = 50;
-ChatTab::ChatTab(const Widget2 *const widget, const std::string &name) :
+ChatTab::ChatTab(const Widget2 *const widget, const std::string &name,
+ const std::string &channel) :
Tab(widget),
mTextOutput(new BrowserBox(this, BrowserBox::AUTO_WRAP)),
mScrollArea(new ScrollArea(mTextOutput, false)),
mAllowHightlight(true),
mRemoveNames(false),
mNoAway(false),
- mShowOnline(false)
+ mShowOnline(false),
+ mChannelName(channel)
{
setCaption(name);