X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=536a5111167499a94ca4deafb4fe39a3501f573c;hp=d360d9de9f2a71b16202903d4ee83567bdab7568;hb=3271ab1dff7df6f6464cb714d675291aae791639;hpb=31745736b8b31647f6224c5a3fe9e82e0320f0f1 diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index d360d9de..536a5111 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -108,6 +108,9 @@ void ChatView::scrollTimerTimeout() { void ChatView::lastLineChanged(QGraphicsItem *chatLine, qreal offset) { Q_UNUSED(chatLine) + if(!scene()->isScrollingAllowed()) + return; + QAbstractSlider *vbar = verticalScrollBar(); Q_ASSERT(vbar); if(vbar->maximum() - vbar->value() <= (offset + 5) * _currentScaleFactor ) { // 5px grace area