Skip to content

Commit

Permalink
fixed: logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
spiff committed May 7, 2012
1 parent 1d99e8b commit ec7cd42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xbmc/addons/GUIWindowAddonBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,16 @@ bool CGUIWindowAddonBrowser::GetDirectory(const CStdString& strDirectory,
int i=0;
while (i < items.Size())
{
if (FilterVar(g_settings.m_bAddonForeignFilter,
if (!FilterVar(g_settings.m_bAddonForeignFilter,
items[i]->GetProperty("Addon.Language"), "en") ||
FilterVar(g_settings.m_bAddonForeignFilter,
!FilterVar(g_settings.m_bAddonForeignFilter,
items[i]->GetProperty("Addon.Language"),
g_langInfo.GetLanguageLocale()))
{
items.Remove(i);
i++;
}
else
i++;
items.Remove(i);
}
}
}
Expand Down

0 comments on commit ec7cd42

Please sign in to comment.