Skip to content

Commit

Permalink
Only show brackets in Statistics title if side name is not empty.
Browse files Browse the repository at this point in the history
Resolves #4080.
  • Loading branch information
Wedge009 committed Oct 22, 2019
1 parent ea90383 commit ccc877e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/statistics_dialog.cpp
Expand Up @@ -71,7 +71,7 @@ void statistics_dialog::pre_show(window& window)
// Set title
//
label& title = find_widget<label>(&window, "title", false);
title.set_label((formatter() << title.get_label() << " (" << current_team_.side_name() << ")").str());
title.set_label((formatter() << title.get_label() << (current_team_.side_name().empty() ? "" : " (" + current_team_.side_name() + ")")).str());

//
// Set up scenario menu
Expand Down

0 comments on commit ccc877e

Please sign in to comment.