1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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

This reverts commit 040c6b95ae.
This commit is contained in:
Anthony Bilinski 2020-04-04 22:53:45 -07:00
parent 3a19eaddb5
commit db3eaa8872
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

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