From 295bd10101a7f22f5418bd5ae4e48700ee4a10fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Jan 2013 22:04:24 +0300 Subject: In char selection dialog add support for selecting character by clicking on image. --- src/gui/charselectdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/charselectdialog.cpp') diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index a912b9198..8315bb5d4 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -565,6 +565,9 @@ CharacterDisplay::CharacterDisplay(const Widget2 *const widget, mButton(new Button(this, "wwwwwwwww", "go", charSelectDialog)), mDelete(new Button(this, _("Delete"), "delete", charSelectDialog)) { + mPlayerBox->setActionEventId("use"); + mPlayerBox->addActionListener(charSelectDialog); + LayoutHelper h(this); ContainerPlacer placer = h.getPlacer(0, 0); -- cgit v1.2.3-60-g2f50