X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=4c3994fc9a80eb882b3c548ac239a2253c8fbb28;hp=440cc4da71c652764a2a0584e45088efecdf0d1e;hb=7156691fecfbc44a67d0ec6055d2e892a7eb42de;hpb=7697a688fc1fb1e8e56b80099707e4b2a944759e diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 440cc4da..4c3994fc 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -30,6 +30,7 @@ #include "messagefilter.h" #include "qtui.h" #include "qtuistyle.h" +#include "clientignorelistmanager.h" ChatView::ChatView(BufferId bufferId, QWidget *parent) : QGraphicsView(parent), @@ -73,7 +74,10 @@ void ChatView::init(MessageFilter *filter) { setScene(_scene); connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(verticalScrollbarChanged(int))); - connect(QtUi::style(), SIGNAL(changed()), this, SLOT(styleChanged())); + + // only connect if client is synched with a core + if(Client::isSynced()) + connect(Client::ignoreListManager(), SIGNAL(ignoreListChanged()), filter, SLOT(invalidateFilter())); } bool ChatView::event(QEvent *event) { @@ -172,10 +176,6 @@ void ChatView::verticalScrollbarChanged(int newPos) { vbar->setValue(vbar->maximum()); } -void ChatView::styleChanged() { - scene()->layout(); -} - MsgId ChatView::lastMsgId() const { if(!scene()) return MsgId();