diff options
Diffstat (limited to 'contacts.cpp')
| -rw-r--r-- | contacts.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contacts.cpp b/contacts.cpp index 3d3ff77..4336ac3 100644 --- a/contacts.cpp +++ b/contacts.cpp @@ -3,16 +3,16 @@ #include <QListWidgetItem> #include <QScroller> -Contacts::Contacts(const QHash<QString, JidDb *> &databases, +Contacts::Contacts(const QList<Client *> &clients, QWidget *const parent) : QDialog(parent) { ui.setupUi(this); QScroller::grabGesture(ui.contacts_list, QScroller::TouchGesture); - for (const auto db : databases) - for (const auto &contact : db->roster()) - add(db->jid, contact); + for (const auto c : clients) + for (const auto &contact : c->database().roster()) + add(c->jidBare(), contact); connect(ui.contacts_list, &QListWidget::itemActivated, this, [this] |
