From c84eda13b04b4942011ffbba529624da4e110030 Mon Sep 17 00:00:00 2001 From: cazfi Date: Sat, 26 Nov 2016 12:39:03 +0000 Subject: [PATCH] Fixed the way Qt-client popup_terrain_info() checks for empty string. See bug #25325 git-svn-id: svn://svn.gna.org/svn/freeciv/branches/S2_6@34631 a0f10bec-cc02-0410-94fc-a9cfff90b4cd --- client/gui-qt/hudwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gui-qt/hudwidget.cpp b/client/gui-qt/hudwidget.cpp index f06f3add6a..87531cadb1 100644 --- a/client/gui-qt/hudwidget.cpp +++ b/client/gui-qt/hudwidget.cpp @@ -1,4 +1,4 @@ -/********************************************************************** +/*********************************************************************** Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1530,7 +1530,7 @@ QString popup_terrain_info(struct tile *ptile) ret = ret + QString(_("Food/Prod/Trade: %1\n")) .arg(get_tile_output_text(ptile)); t = get_infrastructure_text(ptile->extras); - if (t != '\0') { + if (t != "") { ret = ret + QString(_("Infrastructure: %1\n")).arg(t); } ret = ret + QString(_("Defence bonus: %1%")).arg(terr->defense_bonus); -- 2.11.4.GIT