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

Resolves #4080.
This commit is contained in:
Wedge009 2019-10-23 01:34:47 +11:00
parent 3bc7b3fae7
commit 43dd7e289f

View file

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