Merge pull request #2485 from hunbernd/fix/groups

Friend group fixes
This commit is contained in:
csoler 2021-10-04 09:51:40 +02:00 committed by GitHub
commit c5d0c6a6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -697,7 +697,7 @@ void NewFriendList::peerTreeWidgetCustomPopupMenu()
mModel->getGroupData(parent,info);
QAction *removeFromGroup = groupsMenu->addAction(tr("Remove from group ")+QString::fromUtf8(info.name.c_str()));
removeFromGroup->setData(parent.sibling(parent.row(),RsFriendListModel::COLUMN_THREAD_ID).data(Qt::DisplayRole));
removeFromGroup->setData(QString::fromStdString(info.id.toStdString()));
connect(removeFromGroup, SIGNAL(triggered()), this, SLOT(removeFromGroup()));
}
@ -767,6 +767,7 @@ void NewFriendList::createNewGroup()
{
CreateGroup createGrpDialog (RsNodeGroupId(), this);
createGrpDialog.exec();
checkInternalData(true);
}
#ifdef NOT_USED