Skip to content

Commit

Permalink
statistics_dialog: Don't let the tooltip end with a colon with nothin…
Browse files Browse the repository at this point in the history
…g following it.
  • Loading branch information
jostephd committed Aug 10, 2019
1 parent 3af342a commit 4bcd0ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/dialogs/statistics_dialog.cpp
Expand Up @@ -215,6 +215,8 @@ static hitrate_table_element tally(const statistics::stats::hitrate_map& by_cth,
std::ostringstream str, str2, tooltip;

tooltip << '\n' << '\n' << _("Actual hit rates, by chance to hit:");
if(by_cth.empty())
tooltip << '\n' << _("(no attacks have taken place yet)");
for(const auto& i : by_cth) {
int cth = i.first;
overall_hits += i.second.hits;
Expand Down

0 comments on commit 4bcd0ba

Please sign in to comment.