diff options
author | jenkins4kodi <jenkins4kodi@users.noreply.github.com> | 2016-01-13 20:38:18 +0100 |
---|---|---|
committer | jenkins4kodi <jenkins4kodi@users.noreply.github.com> | 2016-01-13 20:38:18 +0100 |
commit | fe2fa288a73184997e8db578fe3dbd54e7ab5a01 (patch) | |
tree | 5ed16a393156a8e8f66ead2e023c0df4a10510f2 | |
parent | 1f2273299b94e90910f4f8fdda9d2ff5b7714a77 (diff) | |
parent | 4b86185961342c79954b856db79f135ba7112360 (diff) |
Merge pull request #8858 from phil65/jarvis_addons_content_type
-rw-r--r-- | xbmc/filesystem/AddonsDirectory.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/xbmc/filesystem/AddonsDirectory.cpp b/xbmc/filesystem/AddonsDirectory.cpp index e099d7997b..0748079ede 100644 --- a/xbmc/filesystem/AddonsDirectory.cpp +++ b/xbmc/filesystem/AddonsDirectory.cpp @@ -397,7 +397,6 @@ static bool Browse(const CURL& path, CFileItemList &items) static bool Repos(const CURL& path, CFileItemList &items) { items.SetLabel(g_localizeStrings.Get(24033)); - items.SetContent("addons"); VECADDONS addons; CAddonMgr::GetInstance().GetAddons(ADDON_REPOSITORY, addons, true); @@ -405,13 +404,10 @@ static bool Repos(const CURL& path, CFileItemList &items) return true; else if (addons.size() == 1) return Browse(CURL("addons://" + addons[0]->ID()), items); - else - { - CFileItemPtr item(new CFileItem("addons://all/", true)); - item->SetLabel(g_localizeStrings.Get(24087)); - item->SetSpecialSort(SortSpecialOnTop); - items.Add(item); - } + CFileItemPtr item(new CFileItem("addons://all/", true)); + item->SetLabel(g_localizeStrings.Get(24087)); + item->SetSpecialSort(SortSpecialOnTop); + items.Add(item); for (const auto& repo : addons) { @@ -419,6 +415,7 @@ static bool Repos(const CURL& path, CFileItemList &items) CAddonDatabase::SetPropertiesFromAddon(repo, item); items.Add(item); } + items.SetContent("addons"); return true; } @@ -655,6 +652,6 @@ CFileItemPtr CAddonsDirectory::GetMoreItem(const std::string &content) item->SetSpecialSort(SortSpecialOnBottom); return item; } - + } |