refresh contactlist on HushChat tab

This commit is contained in:
DenioD
2020-04-28 22:16:29 +02:00
parent 10ca28a449
commit 96ea7278d8
2 changed files with 13 additions and 0 deletions

View File

@@ -3,8 +3,13 @@
void ContactModel::renderContactList(QListWidget* view)
{
while(view->count() > 0)
{
view->takeItem(0);
}
for(auto &c : AddressBook::getInstance()->getAllAddressLabels())
{
view->addItem(c.getName());
}
}

View File

@@ -1388,6 +1388,14 @@
</property>
</widget>
<widget class="QLabel" name="memoSizeChat">
<property name="geometry">
<rect>
<x>1180</x>
<y>460</y>
<width>47</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string notr="true">0 / 512</string>
</property>