mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #266
This commit is contained in:
parent
3f35a5a48d
commit
afa794d92a
|
@ -77,7 +77,7 @@ QString ChatAreaWidget::getHtmledMessages()
|
|||
return res;
|
||||
}
|
||||
|
||||
void ChatAreaWidget::insertMessage(ChatAction *msgAction)
|
||||
void ChatAreaWidget::insertMessage(ChatAction* msgAction)
|
||||
{
|
||||
if (msgAction == nullptr)
|
||||
return;
|
||||
|
@ -88,6 +88,8 @@ void ChatAreaWidget::insertMessage(ChatAction *msgAction)
|
|||
moveCursor(QTextCursor::End);
|
||||
moveCursor(QTextCursor::PreviousCell);
|
||||
insertHtml(msgAction->getHtml());
|
||||
|
||||
delete msgAction;
|
||||
}
|
||||
|
||||
void ChatAreaWidget::updateChatContent()
|
||||
|
|
Loading…
Reference in New Issue
Block a user