From: Sebastian Goth Date: Tue, 17 Jun 2014 16:07:11 +0000 (+0200) Subject: Don't scroll to bottom on resize X-Git-Tag: 0.11.0~21^2~2 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=777799ecd614503b20c0fc9d31223556ecc6078b Don't scroll to bottom on resize We're brave today.. Resizing the chatview (even unintentionally by hovering the topicline) resulted in scrolling down the current view. There might have been reasons.. i can't see them.. Fixes #821 --- diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 53c43927..b40b2900 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -128,16 +128,9 @@ void ChatView::resizeEvent(QResizeEvent *event) { QGraphicsView::resizeEvent(event); - // FIXME: do we really need to scroll down on resize? - - // we can reduce viewport updates if we scroll to the bottom allready at the beginning - verticalScrollBar()->setValue(verticalScrollBar()->maximum()); scene()->updateForViewport(viewport()->width(), viewport()->height()); adjustSceneRect(); - _lastScrollbarPos = verticalScrollBar()->maximum(); - verticalScrollBar()->setValue(verticalScrollBar()->maximum()); - checkChatLineCaches(); }