Lua functions list - don't throw exceptiosn when filtering, don't know why it happens but this will squash it, and it isn't important enough to know why.

This commit is contained in:
adelikat 2014-06-01 15:44:40 +00:00
parent aa2ae170f3
commit 3f675b2053
1 changed files with 26 additions and 16 deletions

View File

@ -53,23 +53,33 @@ namespace BizHawk.Client.EmuHawk
{ {
text = string.Empty; text = string.Empty;
switch (column) try
{ {
case 0: if (FilteredList.Any() && index < FilteredList.Count)
text = FilteredList[index].ReturnType; {
break; switch (column)
case 1: {
text = FilteredList[index].Library; case 0:
break; text = FilteredList[index].ReturnType;
case 2: break;
text = FilteredList[index].Name; case 1:
break; text = FilteredList[index].Library;
case 3: break;
text = FilteredList[index].ParameterList; case 2:
break; text = FilteredList[index].Name;
case 4: break;
text = FilteredList[index].Description; case 3:
break; text = FilteredList[index].ParameterList;
break;
case 4:
text = FilteredList[index].Description;
break;
}
}
}
catch
{
/* Eat it*/
} }
} }