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 040c6b95aed26dfc7950770ed4dca379e8be2bc5.
This commit is contained in:
parent
35c5e77a8a
commit
3ac6b578df
@ -1088,10 +1088,6 @@ void GenericChatForm::loadHistoryLower()
|
|||||||
|
|
||||||
void GenericChatForm::loadHistoryUpper()
|
void GenericChatForm::loadHistoryUpper()
|
||||||
{
|
{
|
||||||
if (messages.empty()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto msg = messages.crbegin()->second;
|
auto msg = messages.crbegin()->second;
|
||||||
loadHistoryFrom(QDateTime());
|
loadHistoryFrom(QDateTime());
|
||||||
chatWidget->scrollToLine(msg);
|
chatWidget->scrollToLine(msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user