From 2d666d9a3b1bc0aeede357882e054b6afd17a9f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Nov 2013 23:59:16 +0300 Subject: fix char deletion. --- src/gui/windows/charselectdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/charselectdialog.cpp') 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; } -- cgit v1.2.3-70-g09d2