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
deaebddb
Commit
deaebddb
authored
Mar 28, 2012
by
Max-Wilhelm Bruker
Browse files
don't show 'no password for spectators' when spectating is disallowed, fixing issue #26
parent
b2b72428
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/gamesmodel.cpp
View file @
deaebddb
...
@@ -39,7 +39,7 @@ QVariant GamesModel::data(const QModelIndex &index, int role) const
...
@@ -39,7 +39,7 @@ QVariant GamesModel::data(const QModelIndex &index, int role) const
result
.
append
(
gameTypeMap
.
value
(
g
.
game_types
(
i
)));
result
.
append
(
gameTypeMap
.
value
(
g
.
game_types
(
i
)));
return
result
.
join
(
", "
);
return
result
.
join
(
", "
);
}
}
case
4
:
return
g
.
with_password
()
?
(
g
.
spectators_need_password
()
?
tr
(
"yes"
)
:
tr
(
"yes, free for spectators"
))
:
tr
(
"no"
);
case
4
:
return
g
.
with_password
()
?
(
(
g
.
spectators_need_password
()
||
!
g
.
spectators_allowed
())
?
tr
(
"yes"
)
:
tr
(
"yes, free for spectators"
))
:
tr
(
"no"
);
case
5
:
{
case
5
:
{
QStringList
result
;
QStringList
result
;
if
(
g
.
only_buddies
())
if
(
g
.
only_buddies
())
...
...
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