Fix bug with chat scrolling randomly

This commit is contained in:
Ryan Huffman 2014-08-27 12:05:57 -07:00
parent 63df2b2372
commit f1aaea0ffa

View file

@ -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()) {