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.
  • Loading branch information
blabber committed Dec 4, 2024
1 parent 81aa4ce commit 3836dd0
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 3836dd0

Please sign in to comment.