aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2004-12-25 22:26:28 +0000
committerMax Horn2004-12-25 22:26:28 +0000
commit02c0a25c31148b9319a194754a20bd59259db1ef (patch)
treebfc6c2c0015815cffd1bb393c21d72c782f326b4 /gui
parent4a0c1b86f798a83d4c8ee48f8bf4ade3363a61a3 (diff)
downloadscummvm-rg350-02c0a25c31148b9319a194754a20bd59259db1ef.tar.gz
scummvm-rg350-02c0a25c31148b9319a194754a20bd59259db1ef.tar.bz2
scummvm-rg350-02c0a25c31148b9319a194754a20bd59259db1ef.zip
Partial fix for bug #1091189: restore the selection after editing the games list in the launcher
svn-id: r16324
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 37e399436a..a6ccdf2d78 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -487,7 +487,10 @@ void LauncherDialog::updateListing() {
}
}
+ const int oldSel = _list->getSelected();
_list->setList(l);
+ if (oldSel < l.size())
+ _list->setSelected(oldSel); // Restore the old selection
updateButtons();
}