update// added rederfcuntion to contactlist (causes segfaul on compiling)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user