summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/npcdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index 39af0c71d..5e0e9d56f 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -94,6 +94,9 @@ NpcDialog::NpcDialog(int npcId) :
// Setup listbox
mItemList = new ListBox(this);
mItemList->setWrappingEnabled(true);
+ mItemList->setActionEventId("ok");
+ mItemList->addActionListener(this);
+
setContentSize(260, 175);
mListScrollArea = new ScrollArea(mItemList);