From 3836dd03e21794df33323aea12e508e04ff51fe1 Mon Sep 17 00:00:00 2001 From: Tobias Rehbein Date: Thu, 5 Dec 2024 00:01:55 +0100 Subject: [PATCH] Units view: Show map after clicking "find nearest unit" Views are no longer destroyed, if the view is switched. That's the reason why the `popdown_units_view`, that is called after clicking "find nearest unit", is no longer guaranteed to show the map. --- client/views/view_units.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/views/view_units.cpp b/client/views/view_units.cpp index 9d388d3f9b..c9fa048c76 100644 --- a/client/views/view_units.cpp +++ b/client/views/view_units.cpp @@ -557,7 +557,9 @@ void units_view::find_nearest() } } } - popdown_units_view(); + + // Show map + queen()->game_tab_widget->setCurrentIndex(0); } /**