diff options
author | Johannes Schickel | 2012-06-29 15:00:56 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-29 15:00:56 +0200 |
commit | 7860c5bfc93055f1ebcbf037876cd2abd42818c5 (patch) | |
tree | d4748e7e7fdc2f76c25fa4fabbccfbace86a088a | |
parent | 0db0b650e215847005676755363565879c2a7b94 (diff) | |
download | scummvm-rg350-7860c5bfc93055f1ebcbf037876cd2abd42818c5.tar.gz scummvm-rg350-7860c5bfc93055f1ebcbf037876cd2abd42818c5.tar.bz2 scummvm-rg350-7860c5bfc93055f1ebcbf037876cd2abd42818c5.zip |
GUI: Only update save list when the dialog opens in thumbnail load chooser.
-rw-r--r-- | gui/saveload-dialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index 1d8a9872aa..25c722eec1 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -452,6 +452,7 @@ void LoadChooserThumbnailed::open() { SaveLoadChooserDialog::open(); _curPage = 0; + _saveList = _metaEngine->listSaves(_target.c_str()); updateSaves(); } @@ -546,8 +547,6 @@ void LoadChooserThumbnailed::hideButtons() { void LoadChooserThumbnailed::updateSaves() { hideButtons(); - _saveList = _metaEngine->listSaves(_target.c_str()); - for (uint i = _curPage * _entriesPerPage, curNum = 0; i < _saveList.size() && curNum < _entriesPerPage; ++i, ++curNum) { const uint saveSlot = _saveList[i].getSaveSlot(); |