Skip to content
Permalink
Browse files

MainWindow: fix a bug where user/channel actions were enabled even th…

…ough no user or channel was selected.
  • Loading branch information...
bontibon authored and mkrautz committed Apr 6, 2014
1 parent c897c56 commit 01a7c58301f3588ec4f5631ff47ed7ee28422170
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/mumble/MainWindow.cpp
@@ -1878,6 +1878,7 @@ void MainWindow::updateMenuPermissions() {
} else {
qaUserMute->setEnabled(false);
qaUserDeaf->setEnabled(false);
qaUserPrioritySpeaker->setEnabled(false);
qaUserTextMessage->setEnabled(false);
qaUserInformation->setEnabled(false);
}
@@ -1892,6 +1893,7 @@ void MainWindow::updateMenuPermissions() {
qaChannelUnlink->setEnabled((p & (ChanACL::Write | ChanACL::LinkChannel)) || (homep & (ChanACL::Write | ChanACL::LinkChannel)));
qaChannelUnlinkAll->setEnabled(p & (ChanACL::Write | ChanACL::LinkChannel));

qaChannelCopyURL->setEnabled(c);
qaChannelSendMessage->setEnabled(p & (ChanACL::Write | ChanACL::TextMessage));
qaChannelFilter->setEnabled(true);
qteChat->setEnabled(p & (ChanACL::Write | ChanACL::TextMessage));

0 comments on commit 01a7c58

Please sign in to comment.
You can’t perform that action at this time.