diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-12-15 18:38:56 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-12-15 18:38:56 +0100 |
commit | 580bf0a92367c08d10344784843b77cf7fb73d13 (patch) | |
tree | d7a6ac7a62a8cbbca44895ca437dd4d1333df973 /src/net/manaserv/charhandler.cpp | |
parent | 0fbfd04fe113e448ada74af6e8e028d089113afc (diff) | |
download | mana-580bf0a92367c08d10344784843b77cf7fb73d13.tar.gz mana-580bf0a92367c08d10344784843b77cf7fb73d13.tar.bz2 mana-580bf0a92367c08d10344784843b77cf7fb73d13.tar.xz mana-580bf0a92367c08d10344784843b77cf7fb73d13.zip |
Unlock the char select dialog even if we've got an error.
This permit not to be stuck at character deletion
when something goes wrong.
Trivial fix.
Diffstat (limited to 'src/net/manaserv/charhandler.cpp')
-rw-r--r-- | src/net/manaserv/charhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/manaserv/charhandler.cpp b/src/net/manaserv/charhandler.cpp index d44c62fe..6f2b4377 100644 --- a/src/net/manaserv/charhandler.cpp +++ b/src/net/manaserv/charhandler.cpp @@ -196,7 +196,6 @@ void CharHandler::handleCharacterDeleteResponse(Net::MessageIn &msg) delete mSelectedCharacter; mCharacters.remove(mSelectedCharacter); updateCharSelectDialog(); - unlockCharSelectDialog(); new OkDialog(_("Info"), _("Player deleted.")); } else @@ -217,6 +216,7 @@ void CharHandler::handleCharacterDeleteResponse(Net::MessageIn &msg) new OkDialog(_("Error"), errorMessage); } mSelectedCharacter = 0; + unlockCharSelectDialog(); } void CharHandler::handleCharacterSelectResponse(Net::MessageIn &msg) |