Only show brackets in Statistics title if side name is not empty.
Resolves #4080.
This commit is contained in:
parent
3bc7b3fae7
commit
43dd7e289f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,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
|
||||
|
|
Loading…
Add table
Reference in a new issue