From cf2349ae10c57b6b4b171eeeca11382d1d8afa4b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 20 Dec 2009 19:18:18 +0000 Subject: (svn r18578) -Feature: initially select the last joined server when going to the server list --- src/network/network_gui.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index d2e7c3ab0..4ba226266 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -451,10 +451,8 @@ public: UpdateNetworkGameWindow(true); this->field = NGWW_CLIENT; - this->server = NULL; - this->list_pos = SLP_INVALID; - this->last_joined = NetworkGameListAddItem(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port)); + this->server = this->last_joined; this->servers.SetListing(this->last_sorting); this->servers.SetSortFuncs(this->sorter_funcs); -- cgit v1.2.3-70-g09d2