Merge branch 'outofrangefix' of https://github.com/justalemon/DS4Windows into justalemon-outofrangefix

This commit is contained in:
Travis Nickles 2018-09-29 03:18:35 -05:00
commit c324434a05

View File

@ -1225,8 +1225,11 @@ namespace DS4Windows
private void lVMacros_MouseDoubleClick(object sender, MouseEventArgs e) private void lVMacros_MouseDoubleClick(object sender, MouseEventArgs e)
{ {
if (lVMacros.SelectedIndices[0] >= 0) if (lVMacros.SelectedIndices.Count == 0)
{ {
return;
}
if (lVMacros.SelectedItems[0].ImageIndex == 2) if (lVMacros.SelectedItems[0].ImageIndex == 2)
{ {
TextBox tb = new TextBox(); TextBox tb = new TextBox();
@ -1290,7 +1293,6 @@ namespace DS4Windows
tb1.Focus(); tb1.Focus();
} }
} }
}
void tb_TextChanged(object sender, EventArgs e) void tb_TextChanged(object sender, EventArgs e)
{ {