mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-16 02:13:39 +12:00
[BUG] ArgumentOutOfRangeException at KeyboardInput.SelectPreviousMenu (#477), version 1.3.2.9
This commit is contained in:
parent
b30b9193b9
commit
945114317f
|
@ -437,7 +437,8 @@ namespace SystemTrayMenu.Handler
|
||||||
iRowKey = -1;
|
iRowKey = -1;
|
||||||
menu = menus[iMenuKey];
|
menu = menus[iMenuKey];
|
||||||
dgv = menu.GetDataGridView();
|
dgv = menu.GetDataGridView();
|
||||||
if (SelectMatched(dgv, dgv.SelectedRows[0].Index) ||
|
if ((dgv.SelectedRows.Count > 0 &&
|
||||||
|
SelectMatched(dgv, dgv.SelectedRows[0].Index)) ||
|
||||||
SelectMatched(dgv, 0))
|
SelectMatched(dgv, 0))
|
||||||
{
|
{
|
||||||
RowDeselected(dgvBefore, iRowBefore);
|
RowDeselected(dgvBefore, iRowBefore);
|
||||||
|
|
|
@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.3.2.8")]
|
[assembly: AssemblyVersion("1.3.2.9")]
|
||||||
[assembly: AssemblyFileVersion("1.3.2.8")]
|
[assembly: AssemblyFileVersion("1.3.2.9")]
|
||||||
|
|
Loading…
Reference in a new issue