Permalink
Browse files

pvr: fix issue #521. Problems with settings of type number and file

  • Loading branch information...
1 parent 099e986 commit 83d33d2975da26a8a7de9a4380cc0b8520633ab8 Daniel Piñeiro Santos committed with Lars Op den Kamp May 16, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 xbmc/addons/AddonCallbacksAddon.cpp
  2. +2 −2 xbmc/addons/AddonDll.h
@@ -169,7 +169,7 @@ bool CAddonCallbacksAddon::GetAddonSetting(void *addonData, const char *strSetti
strcmpi(type, "folder") == 0 || strcmpi(type, "action") == 0 ||
strcmpi(type, "music") == 0 || strcmpi(type, "pictures") == 0 ||
strcmpi(type, "folder") == 0 || strcmpi(type, "programs") == 0 ||
- strcmpi(type, "files") == 0 || strcmpi(type, "fileenum") == 0)
+ strcmpi(type, "file") == 0 || strcmpi(type, "fileenum") == 0)
{
strcpy((char*) settingValue, addonHelper->m_addon->GetSetting(id).c_str());
return true;
View
@@ -419,11 +419,11 @@ ADDON_STATUS CAddonDll<TheDll, TheStruct, TheProps>::TransferSettings()
strcmpi(type, "folder") == 0 || strcmpi(type, "action") == 0 ||
strcmpi(type, "music") == 0 || strcmpi(type, "pictures") == 0 ||
strcmpi(type, "folder") == 0 || strcmpi(type, "programs") == 0 ||
- strcmpi(type, "files") == 0 || strcmpi(type, "fileenum") == 0)
+ strcmpi(type, "file") == 0 || strcmpi(type, "fileenum") == 0)
{
status = m_pDll->SetSetting(id, (const char*) GetSetting(id).c_str());
}
- else if (strcmpi(type, "integer") == 0 || strcmpi(type, "enum") == 0 ||
+ else if (strcmpi(type, "number") == 0 || strcmpi(type, "enum") == 0 ||
strcmpi(type, "labelenum") == 0 || strcmpi(type, "rangeofnum") == 0)
{
int tmp = atoi(GetSetting(id));

0 comments on commit 83d33d2

Please sign in to comment.