update// added rederfcuntion to contactlist (causes segfaul on compiling)

This commit is contained in:
Strider
2020-04-28 22:05:40 +02:00
parent 2efec07e42
commit 30edee0470
9 changed files with 50 additions and 11 deletions

View File

@@ -984,16 +984,23 @@ void Controller::refreshTransactions()
// Update model data, which updates the table view
transactionsTableModel->replaceData(txdata);
chatModel->renderChatBox(ui->listChatMemo);
//chatModel->showMessages();
refreshContacts(
ui->listContactWidget
);
});
}
void Controller::refreshChat(QListWidget *listWidget)
{
qDebug() << "Called Controller::refreshChat(QListWidget *listWidget)";
chatModel->renderChatBox(listWidget);
}
void Controller::refreshContacts(QListWidget *listWidget)
{
qDebug() << "Called Controller::refreshContacts(QListWidget *listWidget)";
contactModel->renderContactList(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)
{