X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fchatview.cpp;h=96e8d9443c52f0315c07b186282a63f45526a091;hb=bf237228540f46f34291183a78028e1dda4d0dad;hp=02d61b261bf766142fcedb1dca6f06a6b6b467e8;hpb=be41e44e71e8d88a040354b28fccd824c51b353a;p=quassel.git diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 02d61b26..96e8d944 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -74,6 +74,9 @@ void ChatView::sceneHeightChangedAt(qreal ypos, qreal hdiff) { void ChatView::verticalScrollbarChanged(int newPos) { QAbstractSlider *vbar = verticalScrollBar(); Q_ASSERT(vbar); + + // FIXME dirty hack to battle the "I just scroll up a pixel on hide()/show()" problem + if(vbar->maximum() - vbar->value() < 5) vbar->setValue(vbar->maximum()); if(newPos < _lastScrollbarPos) { int relativePos = 100;