aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/ps2
diff options
context:
space:
mode:
authorThierry Crozat2017-11-24 22:21:44 +0000
committerThierry Crozat2017-11-24 22:44:41 +0000
commit469e75cb64c4acd2914ec845915637e9144b159a (patch)
tree53672bab789c2259590d107a4c37b88613419b0a /backends/fs/ps2
parent150f70f94c3d8cf762ca564ac6c05fa52c62f9a8 (diff)
downloadscummvm-rg350-469e75cb64c4acd2914ec845915637e9144b159a.tar.gz
scummvm-rg350-469e75cb64c4acd2914ec845915637e9144b159a.tar.bz2
scummvm-rg350-469e75cb64c4acd2914ec845915637e9144b159a.zip
GUI: Fix incorrect SaveLoad dialog state after updating the save list
Updating the list reset the selection in the list widget, however if a save had previously been selected and the Choose button was enabled, it remained enabled despite no save being selected. Trying to load the game resulted in a crash. This was particularly an issue with cloud enabled as if you are unlucky you could have tried to load a save just as the cloud sync finished, which updated the list and unselected the save. This change fixes bug #9766: Assert in SaveLoadChooser dialog. In addition to adding a sanity check on the selected index for the Choose command, this commit also preserves the selection when updating the list as I think this would be the expected behaviour in this dialog.
Diffstat (limited to 'backends/fs/ps2')
0 files changed, 0 insertions, 0 deletions