summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-04-13 00:12:50 +0100
committerCarl Hetherington <cth@carlh.net>2018-04-13 00:12:50 +0100
commited0b3ee0c5a0ba11d3a1a1dfee8e71238bcab4bd (patch)
tree6c27b0adc932533794a4378ea53c1fca3154f97d /src/wx
parent1d5ea1b139942bad5500ae40f0646da3fd29dc7f (diff)
Note and indicate servers with bad link version (#982).
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/servers_list_dialog.cc18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/wx/servers_list_dialog.cc b/src/wx/servers_list_dialog.cc
index a83e42214..e4839916e 100644
--- a/src/wx/servers_list_dialog.cc
+++ b/src/wx/servers_list_dialog.cc
@@ -35,7 +35,7 @@ ServersListDialog::ServersListDialog (wxWindow* parent)
wxBoxSizer* s = new wxBoxSizer (wxVERTICAL);
SetSizer (s);
- _list = new wxListCtrl (this, wxID_ANY, wxDefaultPosition, wxSize (400, 200), wxLC_REPORT | wxLC_SINGLE_SEL);
+ _list = new wxListCtrl (this, wxID_ANY, wxDefaultPosition, wxSize (500, 200), wxLC_REPORT | wxLC_SINGLE_SEL);
{
wxListItem ip;
@@ -49,7 +49,7 @@ ServersListDialog::ServersListDialog (wxWindow* parent)
wxListItem ip;
ip.SetId (1);
ip.SetText (_("Threads"));
- ip.SetWidth (100);
+ ip.SetWidth (150);
_list->InsertColumn (1, ip);
}
@@ -76,7 +76,8 @@ ServersListDialog::servers_list_changed ()
_list->DeleteAllItems ();
int n = 0;
- BOOST_FOREACH (EncodeServerDescription i, EncodeServerFinder::instance()->servers ()) {
+
+ BOOST_FOREACH (EncodeServerDescription i, EncodeServerFinder::instance()->good_servers()) {
wxListItem list_item;
list_item.SetId (n);
_list->InsertItem (list_item);
@@ -86,4 +87,15 @@ ServersListDialog::servers_list_changed ()
++n;
}
+
+ BOOST_FOREACH (EncodeServerDescription i, EncodeServerFinder::instance()->bad_servers()) {
+ wxListItem list_item;
+ list_item.SetId (n);
+ _list->InsertItem (list_item);
+
+ _list->SetItem (n, 0, std_to_wx (i.host_name ()));
+ _list->SetItem (n, 1, _("Incorrect version"));
+
+ ++n;
+ }
}