X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=4c3994fc9a80eb882b3c548ac239a2253c8fbb28;hp=c8d6699be2abaa11c7253e91e2f541a680cff2fa;hb=7156691fecfbc44a67d0ec6055d2e892a7eb42de;hpb=a540a0285feef171e16fd6225b0e045fc5fc52e4 diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index c8d6699b..4c3994fc 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -28,6 +28,9 @@ #include "chatview.h" #include "client.h" #include "messagefilter.h" +#include "qtui.h" +#include "qtuistyle.h" +#include "clientignorelistmanager.h" ChatView::ChatView(BufferId bufferId, QWidget *parent) : QGraphicsView(parent), @@ -71,6 +74,10 @@ void ChatView::init(MessageFilter *filter) { setScene(_scene); connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(verticalScrollbarChanged(int))); + + // 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) { @@ -163,6 +170,10 @@ void ChatView::verticalScrollbarChanged(int newPos) { } } _lastScrollbarPos = newPos; + + // FIXME: Fugly workaround for the ChatView scrolling up 1px on buffer switch + if(vbar->maximum() - newPos <= 2) + vbar->setValue(vbar->maximum()); } MsgId ChatView::lastMsgId() const {