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/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 2387a041..99a83ba0 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -562,8 +562,8 @@ void do_input(Network *network) case SDLK_ESCAPE: if (!exitConfirm) { exitConfirm = new ConfirmDialog( - "Quit", "Are you sure you want to quit?", - (gcn::ActionListener*)&exitListener); + "Quit", "Are you sure you want to quit?"); + exitConfirm->addActionListener(&exitListener); } exitConfirm->requestMoveToTop(); break; -- cgit v1.2.3-70-g09d2