| 486 | |
| 487 | |
| 488 | void CServerListCtrl::OnConnectToServer( wxCommandEvent& WXUNUSED(event) ) |
| 489 | { |
| 490 | int item = GetNextItem( -1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED ); |
| 491 | |
| 492 | if ( item > -1 ) { |
| 493 | if ( theApp->IsConnectedED2K() ) { |
| 494 | theApp->serverconnect->Disconnect(); |
| 495 | } |
| 496 | |
| 497 | theApp->serverconnect->ConnectToServer( reinterpret_cast<CServer*>(GetItemData(item)) ); |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | |
| 502 | void CServerListCtrl::OnGetED2kURL( wxCommandEvent& WXUNUSED(event) ) |
nothing calls this directly
no test coverage detected