diff options
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index b86a01e3..e3f4766e 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -33,7 +33,6 @@ #include "ok_dialog.h" #include "playerbox.h" #include "textfield.h" -#include "windowcontainer.h" #include "../game.h" #include "../localplayer.h" @@ -54,8 +53,8 @@ class CharDeleteConfirm : public ConfirmDialog }; CharDeleteConfirm::CharDeleteConfirm(CharSelectDialog *m): - ConfirmDialog(m, - "Confirm", "Are you sure you want to delete this character?"), + ConfirmDialog("Confirm", "Are you sure you want to delete this character?", + NULL, m), master(m) { } @@ -316,15 +315,15 @@ void CharCreateDialog::action(const std::string& eventId) // Attempt to create the character createButton->setEnabled(false); attemptCharCreate(); - windowContainer->scheduleDelete(this); + scheduleDelete(); } else { - new OkDialog(this, "Error", - "Your name needs to be at least 4 characters."); + new OkDialog("Error", + "Your name needs to be at least 4 characters.", NULL, this); } } else if (eventId == "cancel") { - windowContainer->scheduleDelete(this); + scheduleDelete(); } else if (eventId == "nextcolor") { playerBox->hairColor++; |