From 6eccb166f295de31c38e4bb859d1da3bb7ad169a Mon Sep 17 00:00:00 2001 From: Louis Moureaux <m_louis30@yahoo.com> Date: Sat, 13 Aug 2022 18:35:40 +0200 Subject: [PATCH] Hide the science and economy buttons for global observers They don't do anything. Closes #1225. --- client/page_game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/page_game.cpp b/client/page_game.cpp index 7610cd199c..adfd104509 100644 --- a/client/page_game.cpp +++ b/client/page_game.cpp @@ -317,9 +317,9 @@ void pageGame::updateSidebarTooltips() text_happiness_cities(player_primary_capital(client_player()))); } } else { - sw_science->setTooltip(QLatin1String("")); + sw_science->hide(); sw_map->setTooltip(QLatin1String("")); - sw_economy->setTooltip(QLatin1String("")); + sw_economy->hide(); } sw_indicators->setToolTip(get_info_label_text_popup()); }