From d0dc74a23f7e4c699875eaa232f36fbd051321d0 Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Mon, 15 Apr 2019 12:49:02 +0200 Subject: [PATCH] Fixed jumping back from current collection to sub collection and from sub collection to current collection for cfwLetterSub. --- .../Source/Graphics/Component/ScrollingList.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/RetroFE/Source/Graphics/Component/ScrollingList.cpp b/RetroFE/Source/Graphics/Component/ScrollingList.cpp index 33283bd..d0125db 100644 --- a/RetroFE/Source/Graphics/Component/ScrollingList.cpp +++ b/RetroFE/Source/Graphics/Component/ScrollingList.cpp @@ -418,9 +418,23 @@ void ScrollingList::cfwLetterSubUp( ) void ScrollingList::cfwLetterSubDown( ) { if (Utils::toLower( collectionName ) != items_->at( (itemIndex_+selectedOffsetIndex_ ) % items_->size( ) )->collectionInfo->lowercaseName( )) + { subChange( false ); + if (Utils::toLower( collectionName ) == items_->at( (itemIndex_+selectedOffsetIndex_ ) % items_->size( ) )->collectionInfo->lowercaseName( )) + { + subChange( true ); + letterChange( false ); + } + } else + { letterChange( false ); + if (Utils::toLower( collectionName ) != items_->at( (itemIndex_+selectedOffsetIndex_ ) % items_->size( ) )->collectionInfo->lowercaseName( )) + { + letterChange( true ); + subChange( false ); + } + } }