From 9f3e30f33d14ef99a18f1405577631acc212b30b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 8 Jul 2023 18:28:22 +0300 Subject: [PATCH 17/17] Qt: Tell if player is observer in hud See osdn #48132 Signed-off-by: Marko Lindqvist --- client/gui-qt/hudwidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/gui-qt/hudwidget.cpp b/client/gui-qt/hudwidget.cpp index 4e56bbd844..904b223d48 100644 --- a/client/gui-qt/hudwidget.cpp +++ b/client/gui-qt/hudwidget.cpp @@ -1679,8 +1679,11 @@ void show_new_turn_info() research = research_get(client_player()); s = QString(_("Year: %1 (Turn: %2)")) .arg(calendar_text()).arg(game.info.turn) + "\n"; - s = s + QString(nation_plural_for_player(client_player())); - s = s + " - " + QString(_("Population: %1")) + s += QString(nation_plural_for_player(client_player())); + if (client_is_observer()) { + s += QString(_(" (observer)")); + } + s += " - " + QString(_("Population: %1")) .arg(population_to_text(civ_population(client.conn.playing))); if (research->researching != A_UNKNOWN && research->researching != A_UNSET -- 2.40.1