[longomatch] Fill the filter properly, including all tags available
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fill the filter properly, including all tags available
- Date: Sat, 10 Nov 2012 18:58:44 +0000 (UTC)
commit 1369ea9f5fd29812a306b792f4d0ca2843444679
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Nov 10 19:57:40 2012 +0100
Fill the filter properly, including all tags available
LongoMatch.Core/Common/PlaysFilter.cs | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Core/Common/PlaysFilter.cs b/LongoMatch.Core/Common/PlaysFilter.cs
index e44025a..0fcc124 100644
--- a/LongoMatch.Core/Common/PlaysFilter.cs
+++ b/LongoMatch.Core/Common/PlaysFilter.cs
@@ -72,10 +72,15 @@ namespace LongoMatch.Common
categoriesFilter.Clear();
foreach (var cat in project.Categories) {
List<SubCategoryTags> list = new List<SubCategoryTags>();
+ categoriesFilter.Add(cat, list);
foreach (var subcat in cat.SubCategories) {
- list.Add(new SubCategoryTags{SubCategory = subcat});
+ if (subcat is TagSubCategory) {
+ SubCategoryTags subcatTags = new SubCategoryTags{SubCategory = subcat};
+ list.Add(subcatTags);
+ foreach (var option in subcat as TagSubCategory)
+ subcatTags.Add (option);
+ }
}
- categoriesFilter.Add(cat, list);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]