update// added chatmessages to chatwindow

This commit is contained in:
Strider
2020-04-27 21:53:37 +02:00
parent a607a54a00
commit b79334a497
7 changed files with 40 additions and 14 deletions

View File

@@ -982,11 +982,17 @@ void Controller::refreshTransactions()
// Update model data, which updates the table view
transactionsTableModel->replaceData(txdata);
//chatModel->renderChatBox();
chatModel->showMessages();
chatModel->renderChatBox(ui->listChatMemo);
//chatModel->showMessages();
});
}
void Controller::refreshChat(QListWidget *listWidget)
{
qDebug() << "Called Controller::refreshChat(QListWidget *listWidget)";
chatModel->renderChatBox(listWidget);
}
// If the wallet is encrpyted and locked, we need to unlock it
void Controller::unlockIfEncrypted(std::function<void(void)> cb, std::function<void(void)> error)
{