diff --git a/src/chatlog/chatlog.cpp b/src/chatlog/chatlog.cpp index 5a7e80d7a..aa985e53b 100644 --- a/src/chatlog/chatlog.cpp +++ b/src/chatlog/chatlog.cpp @@ -728,3 +728,10 @@ void ChatLog::onWorkerTimeout() verticalScrollBar()->show(); } } + +void ChatLog::showEvent(QShowEvent *) +{ + // Empty. + // The default implementation calls centerOn - for some reason - causing + // the scrollbar to move. +} diff --git a/src/chatlog/chatlog.h b/src/chatlog/chatlog.h index 4461d2b3c..611900fbc 100644 --- a/src/chatlog/chatlog.h +++ b/src/chatlog/chatlog.h @@ -80,6 +80,7 @@ protected: virtual void mouseMoveEvent(QMouseEvent* ev); virtual void scrollContentsBy(int dx, int dy); virtual void resizeEvent(QResizeEvent *ev); + virtual void showEvent(QShowEvent *); void updateMultiSelectionRect(); void updateTypingNotification();