Explorar o código

small optimisation

Laserlicht %!s(int64=2) %!d(string=hai) anos
pai
achega
9a116f9b20
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      client/lobby/CSelectionBase.cpp

+ 4 - 2
client/lobby/CSelectionBase.cpp

@@ -113,9 +113,11 @@ void CSelectionBase::toggleTab(std::shared_ptr<CIntObject> tab)
 	}
 
 	if(tabSel->showRandom)
+	{
 		tabSel->curFolder = "";
-	tabSel->showRandom = false;
-	tabSel->filter(0, true);
+		tabSel->filter(0, true);
+		tabSel->showRandom = false;
+	}
 
 	GH.windows().totalRedraw();
 }