Don't emit signal in constructor

This commit is contained in:
Loren Burkholder 2021-06-12 22:00:14 -04:00
parent 60b3c34d78
commit db8af24bea

View file

@ -37,7 +37,6 @@ MemberList::MemberList(const QString &room_id, QWidget *parent)
auto members = cache::getMembers(room_id_.toStdString()); auto members = cache::getMembers(room_id_.toStdString());
addUsers(members); addUsers(members);
numUsersLoaded_ = members.size(); numUsersLoaded_ = members.size();
emit numUsersLoadedChanged();
} catch (const lmdb::error &e) { } catch (const lmdb::error &e) {
nhlog::db()->critical("Failed to retrieve members from cache: {}", e.what()); nhlog::db()->critical("Failed to retrieve members from cache: {}", e.what());
} }