Skip to content

Commit

Permalink
fixed: clear item vector when content type is changed to none
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c04cf9fc90f355ec6e44aab52ff97f1b4d306f1)

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@35502 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
spiff_ committed Nov 28, 2010
1 parent dd5f4f5 commit 07e7e4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/GUIDialogContentSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ void CGUIDialogContentSettings::OnWindowLoaded()

void CGUIDialogContentSettings::SetupPage()
{
CGUIMessage msgReset(GUI_MSG_LABEL_RESET, GetID(), CONTROL_SCRAPER_LIST);
OnMessage(msgReset);
m_vecItems->Clear();
if (m_content == CONTENT_NONE)
{
m_bShowScanSettings = false;
Expand Down Expand Up @@ -299,11 +302,8 @@ void CGUIDialogContentSettings::FillContentTypes(const CONTENT_TYPE &content)

void CGUIDialogContentSettings::FillListControl()
{
CGUIMessage msgReset(GUI_MSG_LABEL_RESET, GetID(), CONTROL_SCRAPER_LIST);
OnMessage(msgReset);
int iIndex=0;
int selectedIndex = 0;
m_vecItems->Clear();

if (m_scrapers.size() == 0 || m_scrapers.find(m_content) == m_scrapers.end())
return;
Expand Down

0 comments on commit 07e7e4f

Please sign in to comment.