aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-11-09 20:34:52 +0000
committerJohannes Schickel2008-11-09 20:34:52 +0000
commit9879985abfcd2c729907caa3886d7ff9613887e9 (patch)
treec660fdbabea1506afe4602e2ec85e609b9c6e29d /gui/launcher.cpp
parentbc829e721becf2e6b2ecdb1e963c4d2ccbe0701c (diff)
downloadscummvm-rg350-9879985abfcd2c729907caa3886d7ff9613887e9.tar.gz
scummvm-rg350-9879985abfcd2c729907caa3886d7ff9613887e9.tar.bz2
scummvm-rg350-9879985abfcd2c729907caa3886d7ff9613887e9.zip
Prevent double click handling if choose button is disabled. (SaveLoadChooser)
svn-id: r34976
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 897f85f25d..68a8fca0de 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -551,7 +551,7 @@ void SaveLoadChooser::handleCommand(CommandSender *sender, uint32 cmd, uint32 da
switch (cmd) {
case GUI::kListItemActivatedCmd:
case GUI::kListItemDoubleClickedCmd:
- if (selItem >= 0) {
+ if (selItem >= 0 && _chooseButton->isEnabled()) {
if (_list->isEditable() || !_list->getSelectedString().empty()) {
_list->endEditMode();
if (!_saveList.empty()) {