Skip to content

Commit

Permalink
GUI: Only update save list when the dialog opens in thumbnail load ch…
Browse files Browse the repository at this point in the history
…ooser.
  • Loading branch information
Johannes Schickel committed Jun 29, 2012
1 parent 0db0b65 commit 7860c5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gui/saveload-dialog.cpp
Expand Up @@ -452,6 +452,7 @@ void LoadChooserThumbnailed::open() {
SaveLoadChooserDialog::open();

_curPage = 0;
_saveList = _metaEngine->listSaves(_target.c_str());
updateSaves();
}

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 7860c5b

Please sign in to comment.