From cf74ac202ce0720e3a3155c65c4a64696c7b436e Mon Sep 17 00:00:00 2001 From: Sebastian Goth Date: Wed, 25 Jun 2014 19:16:23 +0200 Subject: [PATCH] Initialize ChatView scrolled to bottom Now that we don't scroll on every resize, ensure that we start scrolled to bottom. --- src/qtui/chatview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index b8cb2f17..20b25e0e 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -80,7 +80,7 @@ void ChatView::init(MessageFilter *filter) setScene(_scene); connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(verticalScrollbarChanged(int))); - _lastScrollbarPos = verticalScrollBar()->value(); + _lastScrollbarPos = verticalScrollBar()->maximum(); connect(Client::networkModel(), SIGNAL(markerLineSet(BufferId, MsgId)), SLOT(markerLineSet(BufferId, MsgId))); -- 2.20.1