Browse Source

revert(chatlog): "fix a crash when there are no messages to load"

This reverts commit 040c6b95ae.
reviewable/pr6374/r3
Anthony Bilinski 5 years ago
parent
commit
db3eaa8872
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 4
      src/widget/form/genericchatform.cpp

4
src/widget/form/genericchatform.cpp

@ -1144,10 +1144,6 @@ void GenericChatForm::loadHistoryLower() @@ -1144,10 +1144,6 @@ void GenericChatForm::loadHistoryLower()
void GenericChatForm::loadHistoryUpper()
{
if (messages.empty()) {
return;
}
auto msg = messages.crbegin()->second;
loadHistoryFrom(QDateTime());
chatWidget->scrollToLine(msg);

Loading…
Cancel
Save