don't show 'no password for spectators' when spectating is disallowed, fixing issue #26

This commit is contained in:
Max-Wilhelm Bruker 2012-03-28 21:09:01 +02:00
parent b2b7242802
commit deaebddb0b

View file

@ -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())