Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix addon settings dialog not resetting correctly on unload

  • Loading branch information...
commit 3027c4cb8f482442ace17baa347fc316c6c3c395 1 parent 65afb59
Jonathan Marshall authored Mike committed
View
4 xbmc/addons/GUIDialogAddonSettings.cpp
@@ -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;
View
2  xbmc/addons/GUIDialogAddonSettings.h
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.