From 5ec024c55059149466c924e23a42795e8a329a2c Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 3 Dec 2012 22:23:31 +0100 Subject: [PATCH] * Fixed safety-check in PlaylistInterface. 0 is a valid index. --- src/libtomahawk/PlaylistInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/PlaylistInterface.cpp b/src/libtomahawk/PlaylistInterface.cpp index 925846f42..0e7af24c7 100644 --- a/src/libtomahawk/PlaylistInterface.cpp +++ b/src/libtomahawk/PlaylistInterface.cpp @@ -58,7 +58,7 @@ Tomahawk::result_ptr PlaylistInterface::siblingResult( int itemsAway ) const { qint64 idx = siblingIndex( itemsAway ); - qint64 safetyCheck = 0; + qint64 safetyCheck = -1; // If safetyCheck equals idx, this means the interface keeps returning the same item and we won't discover anything new - abort // This can happen in repeat / random mode e.g.