From: Manuel Nickschas Date: Thu, 12 Feb 2009 08:06:26 +0000 (+0100) Subject: Prevent ChatView from scrolling up 1px on buffer switch, fixes #544 X-Git-Tag: 0.4.0~70 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=79fbcfb49f7cc92a89f0158ebac1a3006a559e8a Prevent ChatView from scrolling up 1px on buffer switch, fixes #544 --- 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 {