Skip to content
This repository
Browse code

smartplaylists: fix parsing of sort direction from JSON object

  • Loading branch information...
commit 296093925468c2d40d433d4e66a07e0ee6fb12e5 1 parent 0d29a97
Sascha Montellese authored July 12, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/playlists/SmartPlayList.cpp
2  xbmc/playlists/SmartPlayList.cpp
@@ -1403,7 +1403,7 @@ bool CSmartPlaylist::Load(const CVariant &obj)
1403 1403
   if (obj.isMember("order") && obj["order"].isMember("method") && obj["order"]["method"].isString())
1404 1404
   {
1405 1405
     if (obj["order"].isMember("direction") && obj["order"]["direction"].isString())
1406  
-      m_orderDirection = StringUtils::EqualsNoCase(obj["order"]["direction"].asString(), "ascending") == 0 ? SortOrderAscending : SortOrderDescending;
  1406
+      m_orderDirection = StringUtils::EqualsNoCase(obj["order"]["direction"].asString(), "ascending") ? SortOrderAscending : SortOrderDescending;
1407 1407
 
1408 1408
     m_orderField = CSmartPlaylistRule::TranslateOrder(obj["order"]["method"].asString().c_str());
1409 1409
   }

0 notes on commit 2960939

Please sign in to comment.
Something went wrong with that request. Please try again.