[Tween-svn] [1522] EventListでダブルクリック時にArgumentOutOfRangeExceptionする場合に対処

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 4月 29日 (金) 19:22:09 JST


Revision: 1522
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1522
Author:   f_swallow
Date:     2011-04-29 19:22:09 +0900 (Fri, 29 Apr 2011)

Log Message:
-----------
EventListでダブルクリック時にArgumentOutOfRangeExceptionする場合に対処

Modified Paths:
--------------
    trunk/Tween/EventViewerDialog.vb


-------------- next part --------------
Modified: trunk/Tween/EventViewerDialog.vb
===================================================================
--- trunk/Tween/EventViewerDialog.vb	2011-04-28 14:57:46 UTC (rev 1521)
+++ trunk/Tween/EventViewerDialog.vb	2011-04-29 10:22:09 UTC (rev 1522)
@@ -65,7 +65,7 @@
     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



Tween-svn メーリングリストの案内
Back to archive index