Commit e00b948d authored by David Edmundson's avatar David Edmundson

Avoid beginRemoveRows with no rows

It causes an assert on Qt5.11. Intention here is to reset.
parent 0862d220
......@@ -39,9 +39,9 @@ void ChannelContactModel::setTextChannel(const Tp::TextChannelPtr &channel)
m_channel = channel;
//remove existing contacts in list
beginRemoveRows(QModelIndex(), 0, m_contacts.size());
beginResetModel();
m_contacts.clear();
endRemoveRows();
endResetModel();
//add existing contacts from channel
addContacts(channel->groupContacts());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment