Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
da469962
Commit
da469962
authored
Nov 09, 2014
by
Fabio Bas
Browse files
Fix #408
Gray out "only buddies/only reg users" in the “create game” dialog if the user is unregistered
parent
8d2e5d3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_creategame.cpp
View file @
da469962
...
...
@@ -56,7 +56,12 @@ void DlgCreateGame::sharedCtor()
onlyBuddiesCheckBox
=
new
QCheckBox
(
tr
(
"Only &buddies can join"
));
onlyRegisteredCheckBox
=
new
QCheckBox
(
tr
(
"Only ®istered users can join"
));
if
(
room
&&
room
->
getUserInfo
()
->
user_level
()
&
ServerInfo_User
::
IsRegistered
)
{
onlyRegisteredCheckBox
->
setChecked
(
true
);
}
else
{
onlyBuddiesCheckBox
->
setEnabled
(
false
);
onlyRegisteredCheckBox
->
setEnabled
(
false
);
}
QGridLayout
*
joinRestrictionsLayout
=
new
QGridLayout
;
joinRestrictionsLayout
->
addWidget
(
passwordLabel
,
0
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment