Don't crash the launcher if there are no entries

svn-id: r5342
This commit is contained in:
James Brown 2002-10-28 10:24:27 +00:00
parent 959a9acf14
commit 29f335c15e

View File

@ -97,7 +97,8 @@ LauncherDialog::LauncherDialog(NewGui *gui, GameDetector &detector)
v++;
}
_list->setList(l);
if (l.size() > 0)
_list->setList(l);
// TODO - make a default selection (maybe the game user played last?)
//_list->setSelected(0);