diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2009-08-30 21:08:57 +0400 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2009-08-31 01:06:24 +0400 |
commit | 4393235b48413021123a4a3fbd7580deeeb60225 (patch) | |
tree | 754c10d9b797246c73883e2311aa7444795e0199 /src/mumble/ACLEditor.cpp | |
parent | 7800978e6bab494e55d4a904685887208670aa81 (diff) |
Add group "Add" button to ACL dialog.
Diffstat (limited to 'src/mumble/ACLEditor.cpp')
-rw-r--r-- | src/mumble/ACLEditor.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mumble/ACLEditor.cpp b/src/mumble/ACLEditor.cpp index f4b66e9db..638c15221 100644 --- a/src/mumble/ACLEditor.cpp +++ b/src/mumble/ACLEditor.cpp @@ -845,6 +845,15 @@ void ACLEditor::on_qcbGroupList_activated(const QString &text) { refillGroupRemove(); refillGroupInherit(); groupEnableCheck(); + qpbGroupAdd->setEnabled(false); +} + +void ACLEditor::on_qcbGroupList_editTextChanged(const QString & text ) { + qpbGroupAdd->setEnabled(!text.isEmpty()); +} + +void ACLEditor::on_qpbGroupAdd_clicked() { + on_qcbGroupList_activated(qcbGroupList->currentText()); } void ACLEditor::on_qpbGroupRemove_clicked() { |