(svn r24770) -Fix-ish: Calling GUIList::Sort repeatedly has no use without GUIList::NeedResort since the latter has the sideeffects.

This commit is contained in:
frosch 2012-11-27 21:54:11 +00:00
parent 507de921c2
commit 4e8f3f7a99
1 changed files with 3 additions and 1 deletions

View File

@ -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 */