summaryrefslogtreecommitdiff
path: root/src/gui/windows/charcreatedialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-13 23:36:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-14 00:34:05 +0300
commit35b27514c8eede4daa8f07f7b44d9579c78d18cf (patch)
tree6202acddb70586efd064c51c9f98e9f3530c5e8b /src/gui/windows/charcreatedialog.cpp
parentcd7e273322d9648be6c005fd2930a6037149a357 (diff)
downloadplus-35b27514c8eede4daa8f07f7b44d9579c78d18cf.tar.gz
plus-35b27514c8eede4daa8f07f7b44d9579c78d18cf.tar.bz2
plus-35b27514c8eede4daa8f07f7b44d9579c78d18cf.tar.xz
plus-35b27514c8eede4daa8f07f7b44d9579c78d18cf.zip
Add features.xml attribute for force account gender for new chars.
New attribute: forceAccountGender Default value: -1 (mean not forcing)
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r--src/gui/windows/charcreatedialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index bb55e06ce..39618917e 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -226,8 +226,11 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent,
mGenderStrip->addButton(_("F"), "f", false);
// TRANSLATORS: one char size male character gender
mGenderStrip->addButton(_("M"), "m", false);
- // TRANSLATORS: one char size unknown character gender
- mGenderStrip->addButton(_("U"), "u", true);
+ if (features.getIntValue("forceAccountGender") == -1)
+ {
+ // TRANSLATORS: one char size unknown character gender
+ mGenderStrip->addButton(_("U"), "u", true);
+ }
mGenderStrip->setVisible(Visible_true);
add(mGenderStrip);