Permalink
Browse files

fix addon settings dialog not resetting correctly on unload

  • Loading branch information...
1 parent d4e069b commit a109fb7a7a94884198a6e4022b619d6cb52897a1 Jonathan Marshall committed Jul 22, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 xbmc/addons/GUIDialogAddonSettings.cpp
  2. +1 −1 xbmc/addons/GUIDialogAddonSettings.h
@@ -98,7 +98,7 @@ bool CGUIDialogAddonSettings::OnMessage(CGUIMessage& message)
bool bCloseDialog = false;
if (iControl == ID_BUTTON_DEFAULT)
- SetDefaults();
+ SetDefaultSettings();
else if (iControl != ID_BUTTON_OK)
bCloseDialog = ShowVirtualKeyboard(iControl);
@@ -1079,7 +1079,7 @@ CStdString CGUIDialogAddonSettings::GetString(const char *value, bool subSetting
}
// Go over all the settings and set their default values
-void CGUIDialogAddonSettings::SetDefaults()
+void CGUIDialogAddonSettings::SetDefaultSettings()
{
if(!m_addon)
return;
@@ -70,7 +70,7 @@ class CGUIDialogAddonSettings : public CGUIDialogBoxBase
void FreeControls();
void UpdateFromControls();
void EnableControls();
- void SetDefaults();
+ void SetDefaultSettings();
bool GetCondition(const CStdString &condition, const int controlId);
void SaveSettings(void);

0 comments on commit a109fb7

Please sign in to comment.