fix for double outgoing message

This commit is contained in:
DenioD
2020-05-26 22:11:15 +02:00
parent 7d081f678c
commit 78ca3cf8ca
5 changed files with 34 additions and 27 deletions

View File

@@ -67,7 +67,8 @@ void Chat::renderChatBox(Ui::MainWindow *ui, QListView *view, QLabel *label)
Items->setData(OUTGOING, Qt::UserRole + 1);
chat->appendRow(Items);
ui->listChat->setModel(chat);
ui->listChat->setModel(chat);
}
else
@@ -86,6 +87,8 @@ void Chat::renderChatBox(Ui::MainWindow *ui, QListView *view, QLabel *label)
Items1->setData(INCOMING, Qt::UserRole + 1);
chat->appendRow(Items1);
ui->listChat->setModel(chat);
}
else
{