diff options
author | Eugene Sandulenko | 2006-11-13 16:29:14 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-11-13 16:29:14 +0000 |
commit | 4f32bdba6c10fca069e462d2eca97e77e8680c20 (patch) | |
tree | 7677b492803ff2e7ddc2a35247011ce1832f3195 /gui | |
parent | 75b062b89f30940b51f32e4369e30b2a0b01ab13 (diff) | |
download | scummvm-rg350-4f32bdba6c10fca069e462d2eca97e77e8680c20.tar.gz scummvm-rg350-4f32bdba6c10fca069e462d2eca97e77e8680c20.tar.bz2 scummvm-rg350-4f32bdba6c10fca069e462d2eca97e77e8680c20.zip |
Patch #1595705: "Select last game when removing the last game of the list"
svn-id: r24707
Diffstat (limited to 'gui')
-rw-r--r-- | gui/launcher.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index fe102dd676..de6ac6226e 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -592,6 +592,9 @@ void LauncherDialog::updateListing() { _list->setList(l); if (oldSel < (int)l.size()) _list->setSelected(oldSel); // Restore the old selection + else if (oldSel != -1) + // Select the last entry if the list has been reduced + _list->setSelected(_list->getList().size() - 1); updateButtons(); } |