OSDN Git Service

EventListでダブルクリック時にArgumentOutOfRangeExceptionする場合に対処
authorf_swallow <f_swallow@users.sourceforge.jp>
Fri, 29 Apr 2011 10:22:09 +0000 (19:22 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:19:27 +0000 (23:19 +0900)
Tween/EventViewerDialog.vb

index 7cecd60..27a02ee 100644 (file)
@@ -65,7 +65,7 @@ Public Class EventViewerDialog
     End Sub
 
     Private Sub EventList_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EventList.DoubleClick
-        If _filterdEventSource(EventList.SelectedIndices(0)) IsNot Nothing Then
+        If Not EventList.SelectedIndices.Count = 0 AndAlso _filterdEventSource(EventList.SelectedIndices(0)) IsNot Nothing Then
             TweenMain.OpenUriAsync("http://twitter.com/" + _filterdEventSource(EventList.SelectedIndices(0)).Username)
         End If
     End Sub