diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-01 23:59:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-01 23:59:16 +0300 |
commit | 2d666d9a3b1bc0aeede357882e054b6afd17a9f1 (patch) | |
tree | 2c5ef8163b09f87bee6507d551451f892e6d3776 /src/gui/windows/charselectdialog.cpp | |
parent | c2f7ae98d3c321a615cda6946443f5098d9d08bd (diff) | |
download | plus-2d666d9a3b1bc0aeede357882e054b6afd17a9f1.tar.gz plus-2d666d9a3b1bc0aeede357882e054b6afd17a9f1.tar.bz2 plus-2d666d9a3b1bc0aeede357882e054b6afd17a9f1.tar.xz plus-2d666d9a3b1bc0aeede357882e054b6afd17a9f1.zip |
fix char deletion.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 763ddebd7..c7ea77784 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -236,7 +236,7 @@ void CharSelectDialog::action(const gcn::ActionEvent &event) else if (eventId == "delete" && mCharacterEntries[selected]->getCharacter()) { - new CharDeleteConfirm(this, selected); + (new CharDeleteConfirm(this, selected))->postInit(); return; } else if (eventId == "info") @@ -393,7 +393,7 @@ void CharSelectDialog::keyPressed(gcn::KeyEvent &keyEvent) if (idx >= 0 && mCharacterEntries[idx] && mCharacterEntries[idx]->getCharacter()) { - new CharDeleteConfirm(this, idx); + (new CharDeleteConfirm(this, idx))->postInit(); } break; } |