summaryrefslogtreecommitdiff
path: root/src/wx/servers_list_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-06 16:43:01 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-06 16:43:01 +0000
commit59602b67d0637817a156b7bd0fc05f96fe41dee5 (patch)
tree3214f9f260796cf673c8bc69b069fd63b8a0889c /src/wx/servers_list_dialog.cc
parent4c7416beb0efbf74868f756ddf8013f93c5841dc (diff)
Various bits of server tidying up.
Diffstat (limited to 'src/wx/servers_list_dialog.cc')
-rw-r--r--src/wx/servers_list_dialog.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/wx/servers_list_dialog.cc b/src/wx/servers_list_dialog.cc
index 49d91fca4..be69a14ed 100644
--- a/src/wx/servers_list_dialog.cc
+++ b/src/wx/servers_list_dialog.cc
@@ -18,6 +18,7 @@
*/
#include <boost/lexical_cast.hpp>
+#include "lib/server_finder.h"
#include "servers_list_dialog.h"
#include "wx_util.h"
@@ -60,21 +61,12 @@ ServersListDialog::ServersListDialog (wxWindow* parent)
s->Layout ();
s->SetSizeHints (this);
- _server_finder.ServerFound.connect (boost::bind (&ServersListDialog::server_found, this, _1));
+ ServerFinder::instance()->connect (boost::bind (&ServersListDialog::server_found, this, _1));
}
void
ServersListDialog::server_found (ServerDescription s)
{
- list<ServerDescription>::const_iterator i = _servers.begin();
- while (i != _servers.end() && i->host_name() != s.host_name()) {
- ++i;
- }
-
- if (i != _servers.end ()) {
- return;
- }
-
wxListItem list_item;
int const n = _list->GetItemCount ();
list_item.SetId (n);