mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Handle mixed case groups in group editor
This commit is contained in:
parent
710dfb7a59
commit
b5b0a4d588
@ -448,18 +448,22 @@ void ACLEditor::refillGroupNames() {
|
||||
qcbGroupList->addItem(name);
|
||||
}
|
||||
|
||||
int wantindex = qcbGroupList->findText(text, Qt::MatchExactly);
|
||||
int wantindex = qcbGroupList->findText(text, Qt::MatchFixedString);
|
||||
qcbGroupList->setCurrentIndex(wantindex);
|
||||
}
|
||||
|
||||
ACLGroup *ACLEditor::currentGroup() {
|
||||
QString group = qcbGroupList->currentText().toLower();
|
||||
QString group = qcbGroupList->currentText();
|
||||
|
||||
foreach(ACLGroup *gp, qlGroups) {
|
||||
if (gp->qsName == group) {
|
||||
foreach(ACLGroup *gp, qlGroups)
|
||||
if (gp->qsName == group)
|
||||
return gp;
|
||||
|
||||
group = group.toLower();
|
||||
|
||||
foreach(ACLGroup *gp, qlGroups)
|
||||
if (gp->qsName == group)
|
||||
return gp;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user