summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-12-15 18:38:56 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-12-15 18:38:56 +0100
commit580bf0a92367c08d10344784843b77cf7fb73d13 (patch)
treed7a6ac7a62a8cbbca44895ca437dd4d1333df973
parent0fbfd04fe113e448ada74af6e8e028d089113afc (diff)
downloadmana-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.
-rw-r--r--src/net/manaserv/charhandler.cpp2
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)