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
154da445
Commit
154da445
authored
Feb 05, 2016
by
Ira Aspen
Browse files
Made create game box prevent only buddies can join being selected for unregistered users.
parent
323fc068
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_creategame.cpp
View file @
154da445
...
...
@@ -116,9 +116,9 @@ DlgCreateGame::DlgCreateGame(TabRoom *_room, const QMap<int, QString> &_gameType
rememberGameSettings
->
setChecked
(
settingsCache
->
getRememberGameSettings
());
descriptionEdit
->
setText
(
settingsCache
->
getGameDescription
());
maxPlayersEdit
->
setValue
(
settingsCache
->
getMaxPlayers
());
onlyBuddiesCheckBox
->
setChecked
(
settingsCache
->
getOnlyBuddies
());
if
(
room
&&
room
->
getUserInfo
()
->
user_level
()
&
ServerInfo_User
::
IsRegistered
)
{
onlyBuddiesCheckBox
->
setChecked
(
settingsCache
->
getOnlyBuddies
());
onlyRegisteredCheckBox
->
setChecked
(
settingsCache
->
getOnlyRegistered
());
}
else
{
onlyBuddiesCheckBox
->
setEnabled
(
false
);
...
...
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