aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-12-22 15:40:11 +0000
committerJordi Vilalta Prat2008-12-22 15:40:11 +0000
commit382a46ffc4c0fade840e319d480c5045122763f8 (patch)
treee1feb58dc474e682f9a920156a342268c8e8e854
parent9a57f4239919370dd323d3962147daef91e32394 (diff)
downloadscummvm-rg350-382a46ffc4c0fade840e319d480c5045122763f8.tar.gz
scummvm-rg350-382a46ffc4c0fade840e319d480c5045122763f8.tar.bz2
scummvm-rg350-382a46ffc4c0fade840e319d480c5045122763f8.zip
Changed the game chooser to make the game candidates not editable and selectable by pressing enter
svn-id: r35489
-rw-r--r--gui/chooser.cpp2
1 files changed, 2 insertions, 0 deletions
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);