From f1aaea0ffa1a3221b2adc55e8ee78c26a65ac9e9 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 27 Aug 2014 12:05:57 -0700 Subject: [PATCH] Fix bug with chat scrolling randomly --- interface/src/ui/ChatWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/ui/ChatWindow.cpp b/interface/src/ui/ChatWindow.cpp index 8874f18dba..a04212afe0 100644 --- a/interface/src/ui/ChatWindow.cpp +++ b/interface/src/ui/ChatWindow.cpp @@ -124,6 +124,10 @@ void ChatWindow::showEvent(QShowEvent* event) { ui->messagePlainTextEdit->setFocus(); } + Application::processEvents(); + + scrollToBottom(); + #ifdef HAVE_QXMPP const QXmppClient& xmppClient = XmppClient::getInstance().getXMPPClient(); if (xmppClient.isConnected()) {