Skip to content

Commit

Permalink
tunit_create: use type image icon if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Oct 20, 2015
1 parent 013acd3 commit 6b3baa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/unit_create.cpp
Expand Up @@ -300,7 +300,7 @@ void tunit_create::list_item_clicked(twindow& window)
u->genders().front());

find_widget<timage>(&window, "type_image", false)
.set_label(u->image() + tc);
.set_label((u->icon().empty() ? u->image() : u->icon()) + tc);

tlabel& u_name = find_widget<tlabel>(&window, "type_name", false);

Expand Down

0 comments on commit 6b3baa2

Please sign in to comment.