소스 검색

* When sorting/filtering is applied during map selection the first map in the list is selected.

OnionKnight 16 년 전
부모
커밋
9f6fd12b5f
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      client/CPreGame.cpp

+ 3 - 0
client/CPreGame.cpp

@@ -400,6 +400,7 @@ void SelectionTab::filter( int size, bool selectFirst )
 			slider->moveTo(0);
 			onSelect(curItems[0]);
 		}
+		selectAbs(0);
 	}
 	else
 	{
@@ -578,6 +579,8 @@ void SelectionTab::sortBy( int criteria )
 		ascending = true;
 	}
 	sort();
+
+	selectAbs(0);
 }
 
 void SelectionTab::sort()