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
5b22187a
Commit
5b22187a
authored
Feb 16, 2016
by
Zach
Browse files
Merge pull request #1794 from zebington/master
Fixes for create game dialogue.
parents
36f1536b
9846fb1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_creategame.cpp
View file @
5b22187a
...
...
@@ -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
);
...
...
@@ -193,7 +193,7 @@ void DlgCreateGame::actReset()
passwordEdit
->
setText
(
""
);
onlyBuddiesCheckBox
->
setChecked
(
false
);
onlyRegisteredCheckBox
->
setChecked
(
true
);
onlyRegisteredCheckBox
->
setChecked
(
room
&&
room
->
getUserInfo
()
->
user_level
()
&
ServerInfo_User
::
IsRegistered
);
spectatorsAllowedCheckBox
->
setChecked
(
true
);
spectatorsNeedPasswordCheckBox
->
setChecked
(
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