Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fixed: No. of questions that can be accepted #32

Merged
merged 3 commits into from
Apr 1, 2013
Merged

Bug Fixed: No. of questions that can be accepted #32

merged 3 commits into from
Apr 1, 2013

Conversation

mihai-varga
Copy link
Contributor

As a response to the bug submitted by mihaimaruseac, i have limited the numbers of questions that can be accepted by the admin. If another question is chosen by any other player, it can only be rejected in order not to accidentally skip one of them. I also added in the message box the name of the player who picked the question, so that the admin can accept the right question.

To get the number of questions picked, i have added each one in a stack, and as soon as it is processed(accepted or refused) it is poped it out. When a new question is picked, the length of the stack is evaluated and a proper message is displayed.

@@ -37,6 +37,7 @@ class AdminGui(Gui):
mutePlayers = pyqtSignal(list)
unmutePlayers = pyqtSignal(list)


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could you remove this empty line? :)

@dfilimon
Copy link
Owner

There a few minor comments, but otherwise LGTM. Thank you! 👍
Will wait for you to revise and then merge.

dfilimon added a commit that referenced this pull request Apr 1, 2013
Bug Fixed: No. of questions that can be accepted
@dfilimon dfilimon merged commit e8f0040 into dfilimon:cdl Apr 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants