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