# HG changeset patch # User frosch # Date 2012-11-27 21:54:11 # Node ID f6f84e811034da88067d3694d8ec4eff98028def # Parent 3650c08ee4d5a8262920a0efe5fbc886d57635a1 (svn r24770) -Fix-ish: Calling GUIList::Sort repeatedly has no use without GUIList::NeedResort since the latter has the sideeffects. diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -596,7 +596,9 @@ public: if (this->servers.NeedRebuild()) { this->BuildGUINetworkGameList(); } - this->SortNetworkGameList(); + if (this->servers.NeedResort()) { + this->SortNetworkGameList(); + } NetworkGameList *sel = this->server; /* 'Refresh' button invisible if no server selected */