summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-01 23:59:16 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-01 23:59:16 +0300
commit2d666d9a3b1bc0aeede357882e054b6afd17a9f1 (patch)
tree2c5ef8163b09f87bee6507d551451f892e6d3776 /src/gui/windows/charselectdialog.cpp
parentc2f7ae98d3c321a615cda6946443f5098d9d08bd (diff)
downloadManaVerse-2d666d9a3b1bc0aeede357882e054b6afd17a9f1.tar.gz
ManaVerse-2d666d9a3b1bc0aeede357882e054b6afd17a9f1.tar.bz2
ManaVerse-2d666d9a3b1bc0aeede357882e054b6afd17a9f1.tar.xz
ManaVerse-2d666d9a3b1bc0aeede357882e054b6afd17a9f1.zip
fix char deletion.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp4
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;
}