Skip to content

Commit

Permalink
不要な ListView.SelectedIndices への参照を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
upsilon committed Mar 7, 2020
1 parent d62e270 commit e7f908c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenTween/Tween.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1964,10 +1964,10 @@ private void MyList_SelectedIndexChanged(object sender, EventArgs e)
var indices = listView.SelectedIndices.Cast<int>().ToArray();
this.CurrentTab.SelectPosts(indices);

if (listView.SelectedIndices.Count != 1)
if (indices.Length != 1)
return;

var index = listView.SelectedIndices[0];
var index = indices[0];
if (index > listView.VirtualListSize - 1) return;

this.PushSelectPostChain();
Expand Down

0 comments on commit e7f908c

Please sign in to comment.