Disabled context menu on items of not connected account, roster contacts group moving, bugfixes with roster contacts group moving ungrouping and copying
这个提交存在于:
父节点
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;
|
||||
}
|
||||
|
|
正在加载…
添加表格
添加链接
在新工单中引用