diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-06 00:12:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-06 00:12:33 +0300 |
commit | 87faf131575091160e9776c511e24b65e8b6b2e9 (patch) | |
tree | 99f057c18ff79f1e8064be146c65fca4f50e2616 /src/gui/windows/charselectdialog.cpp | |
parent | 7901ff853659fb9dda0218eac22c740dd44b1bd3 (diff) | |
download | mv-87faf131575091160e9776c511e24b65e8b6b2e9.tar.gz mv-87faf131575091160e9776c511e24b65e8b6b2e9.tar.bz2 mv-87faf131575091160e9776c511e24b65e8b6b2e9.tar.xz mv-87faf131575091160e9776c511e24b65e8b6b2e9.zip |
Disable char rename button if for selected char not allowed rename.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 5 |
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 { |