From e72c7dbb3a87451d2701f12047858e442b134549 Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Wed, 22 Jan 2020 20:06:23 +0100 Subject: [PATCH] Fixed bug in prevCyclePlaylist action. --- RetroFE/Source/Graphics/Page.cpp | 6 +++--- RetroFE/Source/Version.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RetroFE/Source/Graphics/Page.cpp b/RetroFE/Source/Graphics/Page.cpp index 55e9a59..9e692d4 100644 --- a/RetroFE/Source/Graphics/Page.cpp +++ b/RetroFE/Source/Graphics/Page.cpp @@ -1243,10 +1243,10 @@ void Page::prevCyclePlaylist(std::vector list) while (*it != getPlaylistName() && it != list.end()) ++it; - // If current playlist not found, switch to the last found cycle playlist in the playlist list + // If current playlist not found, switch to the first found cycle playlist in the playlist list if (it == list.end()) { - for (std::vector::iterator it2 = list.end(); it2 != list.begin(); --it2) + for (std::vector::iterator it2 = list.begin(); it2 != list.end(); ++it2) { selectPlaylist( *it2 ); if (*it2 == getPlaylistName()) @@ -1258,8 +1258,8 @@ void Page::prevCyclePlaylist(std::vector list) { for(;;) { - --it; if (it == list.begin()) it = list.end(); // wrap + --it; selectPlaylist( *it ); if (*it == getPlaylistName()) break; diff --git a/RetroFE/Source/Version.cpp b/RetroFE/Source/Version.cpp index a4e7ab1..082a75b 100644 --- a/RetroFE/Source/Version.cpp +++ b/RetroFE/Source/Version.cpp @@ -21,7 +21,7 @@ std::string retrofe_version_major = "0"; std::string retrofe_version_minor = "9"; -std::string retrofe_version_build = "20"; +std::string retrofe_version_build = "21"; std::string Version::getString( )