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

@@ -1,8 +1,9 @@
#include "contactmodel.h"
#include "addressbook.h"
void ContactModel::renderContactList(QListWidget* view)
{
for(auto &c : this->_contacts)
for(auto &c : AddressBook::getInstance()->getAllAddressLabels())
{
view->addItem(c.getName());
}