From: Manuel Nickschas Date: Sun, 31 Aug 2008 20:03:36 +0000 (+0200) Subject: Bring back workaround for the unwanted scroll-on-bufferswitch X-Git-Tag: 0.3.1~307^2~1 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=23245ed934bb8120852ee008b4c74989728c9e27;ds=sidebyside Bring back workaround for the unwanted scroll-on-bufferswitch --- diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 6bdc650a..4a5e286c 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -75,6 +75,9 @@ void ChatView::verticalScrollbarChanged(int newPos) { QAbstractSlider *vbar = verticalScrollBar(); Q_ASSERT(vbar); + if(vbar->maximum() - vbar->value() <= 5) // FIXME workaround the fact that the view gets scrolled up a few px on buffer change + vbar->setValue(vbar->maximum()); + if(newPos < _lastScrollbarPos) { int relativePos = 100; if(vbar->maximum() - vbar->minimum() != 0)