mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 23:14:47 +00:00
Only show brackets in Statistics title if side name is not empty.
Resolves #4080.
This commit is contained in:
parent
ea90383f1d
commit
ccc877e40a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user