summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/charselectdialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 32a3ea410..8d80fe1f7 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -593,6 +593,11 @@ void CharSelectDialog::updateState()
{
// TRANSLATORS: char select dialog. button.
mPlayButton->setCaption(_("Play"));
+
+ LocalPlayer *const player = mCharacterEntries[
+ idx]->getCharacter()->dummy;
+ if (player)
+ mRenameButton->setEnabled(player->getRename() ? true : false);
}
else
{