Cheat Window, Ram Watc, Lua Console - fix exception when clicking Move Up on the first item in the list.
This commit is contained in:
parent
602ee06ffc
commit
f145d8e655
|
@ -270,6 +270,8 @@ namespace BizHawk.MultiClient
|
|||
private void MoveUp()
|
||||
{
|
||||
ListView.SelectedIndexCollection indexes = CheatListView.SelectedIndices;
|
||||
if (indexes[0] == 0)
|
||||
return;
|
||||
Cheat temp = new Cheat();
|
||||
if (indexes.Count == 0) return;
|
||||
foreach (int index in indexes)
|
||||
|
|
|
@ -471,6 +471,9 @@ namespace BizHawk.MultiClient
|
|||
private void MoveUp()
|
||||
{
|
||||
ListView.SelectedIndexCollection indexes = LuaListView.SelectedIndices;
|
||||
if (indexes[0] == 0)
|
||||
return;
|
||||
|
||||
LuaFile temp = new LuaFile(false);
|
||||
if (indexes.Count == 0) return;
|
||||
foreach (int index in indexes)
|
||||
|
|
|
@ -517,6 +517,8 @@ namespace BizHawk.MultiClient
|
|||
if (WatchListView.SelectedIndices.Count == 0)
|
||||
return;
|
||||
ListView.SelectedIndexCollection indexes = WatchListView.SelectedIndices;
|
||||
if (indexes[0] == 0)
|
||||
return;
|
||||
Watch temp = new Watch();
|
||||
if (indexes.Count == 0) return;
|
||||
foreach (int index in indexes)
|
||||
|
|
Loading…
Reference in New Issue