X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=gui%2Fmainwin.cpp;fp=gui%2Fmainwin.cpp;h=ce57a9971f5a249bf5bf99822cb32d95b782f8e4;hp=d90abf91f374bb9402952f4daf96e76df585d96b;hb=6f8bb3747b3b7a4cc07a3bb9717e1222850adcfa;hpb=c66cfafe5dfa8ccdb830e1ae412e7b51cbcdd184 diff --git a/gui/mainwin.cpp b/gui/mainwin.cpp index d90abf91..ce57a997 100644 --- a/gui/mainwin.cpp +++ b/gui/mainwin.cpp @@ -172,6 +172,7 @@ void MainWin::setupViews() { void MainWin::registerNetView(NetworkView *view) { connect(this, SIGNAL(bufferSelected(Buffer *)), view, SLOT(selectBuffer(Buffer *))); connect(this, SIGNAL(bufferUpdated(Buffer *)), view, SLOT(bufferUpdated(Buffer *))); + connect(this, SIGNAL(bufferActivity(uint, Buffer *)), view, SLOT(bufferActivity(uint, Buffer *))); connect(this, SIGNAL(bufferDestroyed(Buffer *)), view, SLOT(bufferDestroyed(Buffer *))); connect(view, SIGNAL(bufferSelected(Buffer *)), this, SLOT(showBuffer(Buffer *))); view->setBuffers(buffers.values()); @@ -305,6 +306,16 @@ void MainWin::recvMessage(Message msg) { } */ Buffer *b = getBuffer(msg.buffer); + + uint level = NetworkView::OtherActivity; + if(msg.type == Message::Plain or msg.type == Message::Notice){ + level |= NetworkView::NewMessage; + } + if(msg.flags & Message::Highlight){ + level |= NetworkView::Highlight; + } + + emit bufferActivity(level, b); //b->displayMsg(msg); b->appendChatLine(new ChatLine(msg)); }