mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 19:47:46 -07:00
don't show 'no password for spectators' when spectating is disallowed, fixing issue #26
This commit is contained in:
parent
b2b7242802
commit
deaebddb0b
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue