From 4490b8643f2449da159c9284503eb2c443aa2e9e Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Wed, 1 Feb 2006 12:24:10 +0000 Subject: 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. --- src/gui/register.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/register.cpp') diff --git a/src/gui/register.cpp b/src/gui/register.cpp index 9b4cf79d..a22d1f73 100644 --- a/src/gui/register.cpp +++ b/src/gui/register.cpp @@ -208,8 +208,8 @@ RegisterDialog::action(const std::string& eventId) delete wrongRegisterNotice; wrongRegisterNotice = NULL; } - wrongRegisterNotice = new OkDialog("Error", errorMsg.str(), - wrongDataNoticeListener); + wrongRegisterNotice = new OkDialog("Error", errorMsg.str()); + wrongRegisterNotice->addActionListener(wrongDataNoticeListener); } else { -- cgit v1.2.3-70-g09d2