Disabled context menu on items of not connected account, roster contacts group moving, bugfixes with roster contacts group moving ungrouping and copying

这个提交存在于:
Blue 2019-09-28 17:30:16 +03:00
父节点 e4d1e21ea0
当前提交 415d56ba69
共有 20 个文件被更改,包括 314 次插入36 次删除

查看文件

@ -103,3 +103,16 @@ unsigned int Models::Group::getOnlineContacts() const
return amount;
}
bool Models::Group::hasContact(const QString& jid) const
{
for (Models::Item* item : childItems) {
if (item->type == Item::contact) {
const Contact* cnt = static_cast<const Contact*>(item);
if (cnt->getJid() == jid) {
return true;
}
}
}
return false;
}