Commit deaebddb authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

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

parent b2b72428
...@@ -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())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment