diff options
author | Johannes Schickel | 2008-11-09 20:34:52 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-11-09 20:34:52 +0000 |
commit | 9879985abfcd2c729907caa3886d7ff9613887e9 (patch) | |
tree | c660fdbabea1506afe4602e2ec85e609b9c6e29d | |
parent | bc829e721becf2e6b2ecdb1e963c4d2ccbe0701c (diff) | |
download | scummvm-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
-rw-r--r-- | gui/launcher.cpp | 2 |
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()) { |