From 3ac6b578df681275aedb1d182a7034fa495ccb27 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sat, 4 Apr 2020 22:53:45 -0700 Subject: [PATCH] revert(chatlog): "fix a crash when there are no messages to load" This reverts commit 040c6b95aed26dfc7950770ed4dca379e8be2bc5. --- src/widget/form/genericchatform.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index dd224a961..dce6dd516 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -1088,10 +1088,6 @@ void GenericChatForm::loadHistoryLower() void GenericChatForm::loadHistoryUpper() { - if (messages.empty()) { - return; - } - auto msg = messages.crbegin()->second; loadHistoryFrom(QDateTime()); chatWidget->scrollToLine(msg);