Fixed an issue with the quick selector when folders were sorted on top.

This commit is contained in:
Leon Styhre 2020-09-27 13:39:37 +02:00
parent 4e9c1361be
commit 6e2c8d4f32

View file

@ -332,7 +332,8 @@ void GuiGamelistOptions::jumpToLetter()
getParent()->getChildrenListToDisplay();
for (unsigned int i = 0; i < files.size(); i++) {
if (mFavoritesSorting && mFirstLetterIndex.front() == FAVORITE_CHAR) {
if (mFavoritesSorting && (mFirstLetterIndex.front() == FAVORITE_CHAR ||
mFirstLetterIndex.front() == FOLDER_CHAR)) {
if ((char)toupper(files.at(i)->getSortName().front()) ==
letter && !files.at(i)->getFavorite()) {
if (!mOnlyHasFolders && mFoldersOnTop && files.at(i)->getType() == FOLDER) {