aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
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 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();
}