Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2010-03-12 17:58:08 +0300
committerThorvald Natvig <slicer@users.sourceforge.net>2010-03-12 20:21:34 +0300
commitb5b0a4d5884671838f93f7807ddf27a17a4e050e (patch)
tree6ad2a9269411325cf14e9948aacf1530ec062164 /src/mumble/ACLEditor.cpp
parent710dfb7a59d7dc32090dbeea68981522073fda6f (diff)
Handle mixed case groups in group editor
Diffstat (limited to 'src/mumble/ACLEditor.cpp')
-rw-r--r--src/mumble/ACLEditor.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/mumble/ACLEditor.cpp b/src/mumble/ACLEditor.cpp
index d6f083d35..edca8eb4f 100644
--- a/src/mumble/ACLEditor.cpp
+++ b/src/mumble/ACLEditor.cpp
@@ -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;
}