X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=27874928b6ecf87e787a990d8e529e5b14f5708f;hp=c8d6699be2abaa11c7253e91e2f541a680cff2fa;hb=0bc4b2b4a25adea85d5f6c6947cfd31f9098149e;hpb=a540a0285feef171e16fd6225b0e045fc5fc52e4 diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index c8d6699b..27874928 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -163,6 +163,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 {