mirror of
https://github.com/libretro/Mesen.git
synced 2025-02-07 01:26:36 +00:00
Debugger: Fixed issues with multiselect in virtual lists
This commit is contained in:
parent
f97331e901
commit
80c41f69c2
@ -128,5 +128,11 @@ namespace Mesen.GUI.Controls
|
||||
{
|
||||
this.DoubleBuffered = true;
|
||||
}
|
||||
|
||||
protected override void OnVirtualItemsSelectionRangeChanged(ListViewVirtualItemsSelectionRangeChangedEventArgs e)
|
||||
{
|
||||
base.OnVirtualItemsSelectionRangeChanged(e);
|
||||
base.OnSelectedIndexChanged(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ namespace Mesen.GUI.Debugger.Controls
|
||||
int topIndex = lstLabels.TopItem.Index;
|
||||
int lastSelectedIndex = lstLabels.SelectedIndices[lstLabels.SelectedIndices.Count - 1];
|
||||
for(int i = lstLabels.SelectedIndices.Count - 1; i >= 0; i--) {
|
||||
CodeLabel label = (CodeLabel)GetSelectedItem().SubItems[1].Tag;
|
||||
CodeLabel label = (CodeLabel)_listItems[lstLabels.SelectedIndices[i]].SubItems[1].Tag;
|
||||
LabelManager.DeleteLabel(label.Address, label.AddressType, i == 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user