From ecf15a6ca32b95d5d7cdf2c85e0ed401735727c3 Mon Sep 17 00:00:00 2001 From: krepa098 Date: Mon, 26 Jan 2015 19:15:29 +0100 Subject: [PATCH] fix regression: chatlog didn't scroll to bottom on startup --- src/chatlog/chatlog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chatlog/chatlog.cpp b/src/chatlog/chatlog.cpp index 0c11a0af7..f3b595c3b 100644 --- a/src/chatlog/chatlog.cpp +++ b/src/chatlog/chatlog.cpp @@ -393,6 +393,9 @@ void ChatLog::scrollToBottom() void ChatLog::startResizeWorker() { + if(lines.empty()) + return; + // (re)start the worker if(!workerTimer->isActive()) {