svnno****@sourc*****
svnno****@sourc*****
2011年 9月 10日 (土) 23:26:58 JST
Revision: 1583 http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1583 Author: kiri_feather Date: 2011-09-10 23:26:58 +0900 (Sat, 10 Sep 2011) Log Message: ----------- 複垢ユーザー未選択問題対処その2 Modified Paths: -------------- trunk/Tween/AppendSettingDialog.vb trunk/Tween/Tween.vb -------------- next part -------------- Modified: trunk/Tween/AppendSettingDialog.vb =================================================================== --- trunk/Tween/AppendSettingDialog.vb 2011-09-10 13:45:15 UTC (rev 1582) +++ trunk/Tween/AppendSettingDialog.vb 2011-09-10 14:26:58 UTC (rev 1583) @@ -206,8 +206,12 @@ Next If Me.AuthUserCombo.SelectedIndex > -1 Then For Each u In Me.UserAccounts - If u.UserId = DirectCast(Me.AuthUserCombo.SelectedItem, UserAccount).UserId Then + If u.Username.ToLower = DirectCast(Me.AuthUserCombo.SelectedItem, UserAccount).Username.ToLower Then tw.Initialize(u.Token, u.TokenSecret, u.Username, u.UserId) + If u.UserId = 0 Then + tw.VerifyCredentials() + u.UserId = tw.UserId + End If Google.GASender.GetInstance.SessionFirst = u.GAFirst Google.GASender.GetInstance.SessionLast = u.GALast Exit For Modified: trunk/Tween/Tween.vb =================================================================== --- trunk/Tween/Tween.vb 2011-09-10 13:45:15 UTC (rev 1582) +++ trunk/Tween/Tween.vb 2011-09-10 14:26:58 UTC (rev 1583) @@ -1149,6 +1149,12 @@ End If Next End If + For Each ua In SettingDialog.UserAccounts + If ua.UserId = 0 AndAlso ua.Username.ToLower = tw.Username.ToLower Then + ua.UserId = tw.UserId + Exit For + End If + Next Google.GASender.GetInstance().TrackPage("/home_timeline", tw.UserId) Google.GASender.GetInstance().TrackEventWithCategory("post", "start", tw.UserId) End Sub