From 78d9bd40849a39db1fbdbfc87b2c45e9d3e73d06 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 21 Aug 2023 00:37:36 +0200 Subject: Insert JidDb into Client --- contacts.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contacts.cpp') diff --git a/contacts.cpp b/contacts.cpp index 3d3ff77..4336ac3 100644 --- a/contacts.cpp +++ b/contacts.cpp @@ -3,16 +3,16 @@ #include #include -Contacts::Contacts(const QHash &databases, +Contacts::Contacts(const QList &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] -- cgit v1.2.3