X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=gui%2Fbuffer.cpp;h=cf764c1b574efe373b15a38862376784ae67f82a;hb=7ec4585cecc74ce8d9a94b0e52f00a96d105e79e;hp=ec45141bfb099a685494eb5921b1e4fe31a8ed7e;hpb=ddc5208315db8ca9ca19f6a59ee7caefe631ffc7;p=quassel.git diff --git a/gui/buffer.cpp b/gui/buffer.cpp index ec45141b..cf764c1b 100644 --- a/gui/buffer.cpp +++ b/gui/buffer.cpp @@ -67,6 +67,13 @@ void Buffer::init() { } +QString Buffer::displayName() { + if(bufferType() == ServerBuffer) + return tr("status"); + else + return bufferName(); +} + void Buffer::setActive(bool a) { if(a != active) { active = a; @@ -74,17 +81,6 @@ void Buffer::setActive(bool a) { } } -/* -void Buffer::displayMsg(Message msg) { - contents()->append(msg); - emit msgDisplayed(msg); -} - -void Buffer::prependMessages(QList msgs) { - _contents = msgs + _contents; -} -*/ - void Buffer::appendChatLine(ChatLine *line) { lines.append(line); emit chatLineAppended(line);