Only show brackets in Statistics title if side name is not empty.

Resolves #4080.
This commit is contained in:
Wedge009 2019-10-23 01:35:50 +11:00
parent ea90383f1d
commit ccc877e40a

View File

@ -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