Fixed: Quality Profile group order no longer used when ordering results

This commit is contained in:
Mark McDowall 2019-01-30 18:23:11 -08:00
parent 08b65a954d
commit b8b82189f7
1 changed files with 4 additions and 4 deletions

View File

@ -26,12 +26,12 @@ namespace NzbDrone.Core.Profiles.Qualities
return lastAllowed.Items.Last().Quality;
}
public QualityIndex GetIndex(Quality quality)
public QualityIndex GetIndex(Quality quality, bool respectGroupOrder = false)
{
return GetIndex(quality.Id);
return GetIndex(quality.Id, respectGroupOrder);
}
public QualityIndex GetIndex(int id)
public QualityIndex GetIndex(int id, bool respectGroupOrder = false)
{
for (var i = 0; i < Items.Count; i++)
{
@ -56,7 +56,7 @@ namespace NzbDrone.Core.Profiles.Qualities
if (groupItem.Quality.Id == id)
{
return new QualityIndex(i, g);
return respectGroupOrder ? new QualityIndex(i, g) : new QualityIndex(i);
}
}
}