Skip to content

Commit

Permalink
Units view: Show map after clicking "find nearest unit"
Browse files Browse the repository at this point in the history
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.

Closes #2451
  • Loading branch information
blabber authored and jwrober committed Dec 6, 2024
1 parent 81aa4ce commit 15cfe08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/views/view_units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,9 @@ void units_view::find_nearest()
}
}
}
popdown_units_view();

// Show map
queen()->game_tab_widget->setCurrentIndex(0);
}

/**
Expand Down

0 comments on commit 15cfe08

Please sign in to comment.