Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
pvr: fix issue #521. Problems with settings of type number and file
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Piñeiro Santos authored and opdenkamp committed Jun 15, 2012
1 parent 099e986 commit 83d33d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xbmc/addons/AddonCallbacksAddon.cpp
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions xbmc/addons/AddonDll.h
Expand Up @@ -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));
Expand Down

0 comments on commit 83d33d2

Please sign in to comment.