diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-01 12:24:10 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-01 12:24:10 +0000 |
commit | 4490b8643f2449da159c9284503eb2c443aa2e9e (patch) | |
tree | d859ebeb3ee69b89c471793b76f9df7fe9546137 /src/gui/char_select.cpp | |
parent | 6bff53b318937999a70d775bb6ecea2b18576e0f (diff) | |
download | mana-4490b8643f2449da159c9284503eb2c443aa2e9e.tar.gz mana-4490b8643f2449da159c9284503eb2c443aa2e9e.tar.bz2 mana-4490b8643f2449da159c9284503eb2c443aa2e9e.tar.xz mana-4490b8643f2449da159c9284503eb2c443aa2e9e.zip |
Made the OkDialog and ConfirmDialog classes proxies for their buttons' events. Removed the RequestTradeWindow class, replaced with a plain ConfirmDialog. Fixed a memory leak along the way.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index e3f4766e..c54481f4 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -54,7 +54,7 @@ class CharDeleteConfirm : public ConfirmDialog CharDeleteConfirm::CharDeleteConfirm(CharSelectDialog *m): ConfirmDialog("Confirm", "Are you sure you want to delete this character?", - NULL, m), + m), master(m) { } @@ -319,7 +319,7 @@ void CharCreateDialog::action(const std::string& eventId) } else { new OkDialog("Error", - "Your name needs to be at least 4 characters.", NULL, this); + "Your name needs to be at least 4 characters.", this); } } else if (eventId == "cancel") { |