mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-10 04:07:25 -08:00
don't show 'no password for spectators' when spectating is disallowed, fixing issue #26
This commit is contained in:
@@ -39,7 +39,7 @@ QVariant GamesModel::data(const QModelIndex &index, int role) const
|
||||
result.append(gameTypeMap.value(g.game_types(i)));
|
||||
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: {
|
||||
QStringList result;
|
||||
if (g.only_buddies())
|
||||
|
||||
Reference in New Issue
Block a user