From a8249e73fa598dde2fbde216c7e8f416ebdbf88d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 Aug 2023 17:58:24 +0300 Subject: =?UTF-8?q?fixes=20#3656=20(NewStory:=20=D0=B0=D0=B2=D1=82=D0=BE?= =?UTF-8?q?=D0=BC=D0=B0=D1=82=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=BC=D0=B0=D1=82=D1=8B=D0=B2=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BB=D0=BE=D0=B3=20=D0=BF=D1=80=D0=B8=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=D0=BB=D1=91=D1=82=D0=B5=20=D1=81=D0=BE=D0=BE=D0=B1?= =?UTF-8?q?=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=B3=D1=80=D1=83?= =?UTF-8?q?=D0=BF=D1=87=D0=B0=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/chat_log.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/chat_log.cpp b/src/mir_app/src/chat_log.cpp index 732c65dee2..a209e6f434 100644 --- a/src/mir_app/src/chat_log.cpp +++ b/src/mir_app/src/chat_log.cpp @@ -430,8 +430,12 @@ void CSimpleLogWindow::LogChatEvents(const struct LOGINFO *lin) if (m_pDlg.IsSuitableEvent(*it)) LogChatEvent(*it); } - else LogChatEvent(*lin); + else { + bool bAtBottom = AtBottom(); - if (lin) - ScrollToBottom(); + LogChatEvent(*lin); + + if (bAtBottom) + ScrollToBottom(); + } } -- cgit v1.2.3