Browse Source

refresh contactlist on HushChat tab

pull/130/head
DenioD 4 years ago
parent
commit
96ea7278d8
  1. 5
      src/contactmodel.cpp
  2. 8
      src/mainwindow.ui

5
src/contactmodel.cpp

@ -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());
}
}

8
src/mainwindow.ui

@ -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>

Loading…
Cancel
Save