diff options
Diffstat (limited to 'src/gui')
-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; } |