From e7f908c3af63ae8d24b34fdfa37cabbf9a673786 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Sun, 8 Mar 2020 00:44:23 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=20ListView.Selected?= =?UTF-8?q?Indices=20=E3=81=B8=E3=81=AE=E5=8F=82=E7=85=A7=E3=82=92?= =?UTF-8?q?=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenTween/Tween.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenTween/Tween.cs b/OpenTween/Tween.cs index 024bccd0b..83ef5aec9 100644 --- a/OpenTween/Tween.cs +++ b/OpenTween/Tween.cs @@ -1964,10 +1964,10 @@ private void MyList_SelectedIndexChanged(object sender, EventArgs e) var indices = listView.SelectedIndices.Cast().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();