| 69 | } |
| 70 | |
| 71 | void CChatWnd::StartSession(CFriend* friend_client, bool setfocus) |
| 72 | { |
| 73 | |
| 74 | if ( !friend_client->GetName().IsEmpty() ) { |
| 75 | if (setfocus) { |
| 76 | theApp->amuledlg->SetActiveDialog(CamuleDlg::DT_CHAT_WND, this); |
| 77 | } |
| 78 | chatselector->StartSession(GUI_ID(friend_client->GetIP(), friend_client->GetPort()), friend_client->GetName(), true); |
| 79 | } |
| 80 | |
| 81 | // Check to enable the window controls if needed |
| 82 | CheckNewButtonsState(); |
| 83 | } |
| 84 | |
| 85 | |
| 86 | void CChatWnd::OnNMRclickChatTab(wxMouseEvent& evt) |
no test coverage detected