Skip to content

Commit

Permalink
fix addon settings dialog not resetting correctly on unload
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marshall committed Jul 22, 2012
1 parent d4e069b commit a109fb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xbmc/addons/GUIDialogAddonSettings.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ bool CGUIDialogAddonSettings::OnMessage(CGUIMessage& message)
bool bCloseDialog = false; bool bCloseDialog = false;


if (iControl == ID_BUTTON_DEFAULT) if (iControl == ID_BUTTON_DEFAULT)
SetDefaults(); SetDefaultSettings();
else if (iControl != ID_BUTTON_OK) else if (iControl != ID_BUTTON_OK)
bCloseDialog = ShowVirtualKeyboard(iControl); bCloseDialog = ShowVirtualKeyboard(iControl);


Expand Down Expand Up @@ -1079,7 +1079,7 @@ CStdString CGUIDialogAddonSettings::GetString(const char *value, bool subSetting
} }


// Go over all the settings and set their default values // Go over all the settings and set their default values
void CGUIDialogAddonSettings::SetDefaults() void CGUIDialogAddonSettings::SetDefaultSettings()
{ {
if(!m_addon) if(!m_addon)
return; return;
Expand Down
2 changes: 1 addition & 1 deletion xbmc/addons/GUIDialogAddonSettings.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CGUIDialogAddonSettings : public CGUIDialogBoxBase
void FreeControls(); void FreeControls();
void UpdateFromControls(); void UpdateFromControls();
void EnableControls(); void EnableControls();
void SetDefaults(); void SetDefaultSettings();
bool GetCondition(const CStdString &condition, const int controlId); bool GetCondition(const CStdString &condition, const int controlId);


void SaveSettings(void); void SaveSettings(void);
Expand Down

0 comments on commit a109fb7

Please sign in to comment.