From a9bb819f216c24c664ed6cb8077bfc9c7f996f35 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 10 Oct 2021 22:42:23 +0300 Subject: [PATCH 47/47] Qt: Use SEX_xxx macros instead of magic values See osdn #42948 Signed-off-by: Marko Lindqvist --- client/gui-qt/dialogs.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/gui-qt/dialogs.cpp b/client/gui-qt/dialogs.cpp index 7cbd7dd05b..74fdb02490 100644 --- a/client/gui-qt/dialogs.cpp +++ b/client/gui-qt/dialogs.cpp @@ -45,6 +45,7 @@ #include "movement.h" #include "nation.h" #include "research.h" +#include "sex.h" // client #include "audio.h" @@ -473,9 +474,9 @@ races_dialog::races_dialog(struct player *pplayer, leader_name = new QComboBox(no_name); sex_buttons = new QButtonGroup(no_name); is_male = new QRadioButton(no_name); - sex_buttons->addButton(is_male, 1); + sex_buttons->addButton(is_male, SEX_MALE); is_female = new QRadioButton(no_name); - sex_buttons->addButton(is_female, 0); + sex_buttons->addButton(is_female, SEX_FEMALE); leader_name->setEditable(true); qgroupbox_layout->addWidget(leader_name, 1, 0, 1, 2); -- 2.33.0