OSDN Git Service

不要な ListView.SelectedIndices への参照を削除
authorKimura Youichi <kim.upsilon@bucyou.net>
Sat, 7 Mar 2020 15:44:23 +0000 (00:44 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Thu, 12 Mar 2020 19:13:57 +0000 (04:13 +0900)
OpenTween/Tween.cs

index 8326f99..6171cc8 100644 (file)
@@ -1942,10 +1942,10 @@ namespace OpenTween
             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();