From 382a46ffc4c0fade840e319d480c5045122763f8 Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Mon, 22 Dec 2008 15:40:11 +0000 Subject: Changed the game chooser to make the game candidates not editable and selectable by pressing enter svn-id: r35489 --- gui/chooser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/chooser.cpp b/gui/chooser.cpp index f5f9b0975a..5ec30f3612 100644 --- a/gui/chooser.cpp +++ b/gui/chooser.cpp @@ -42,6 +42,7 @@ ChooserDialog::ChooserDialog(const String &title, String dialogId) // Add choice list _list = new ListWidget(this, dialogId + ".List"); _list->setNumberingMode(kListNumberingOff); + _list->setEditable(false); // Buttons new ButtonWidget(this, dialogId + ".Cancel", "Cancel", kCloseCmd, 0); @@ -57,6 +58,7 @@ void ChooserDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data int item = _list->getSelected(); switch (cmd) { case kChooseCmd: + case kListItemActivatedCmd: case kListItemDoubleClickedCmd: _list->endEditMode(); setResult(item); -- cgit v1.2.3