Reverted r718.

This commit is contained in:
spx 2011-02-02 23:17:44 +00:00
parent 7bd61751c9
commit 249e021001
2 changed files with 4 additions and 4 deletions

View File

@ -2224,7 +2224,7 @@ void CRainmeter::ActivateConfig(int configIndex, int iniIndex)
else
{
// Deactivate the existing config
DeactivateConfig((*iter).second, configIndex, false);
DeactivateConfig((*iter).second, configIndex);
}
}
@ -2258,7 +2258,7 @@ void CRainmeter::ActivateConfig(int configIndex, int iniIndex)
}
}
bool CRainmeter::DeactivateConfig(CMeterWindow* meterWindow, int configIndex, bool bLater)
bool CRainmeter::DeactivateConfig(CMeterWindow* meterWindow, int configIndex)
{
if (configIndex >= 0 && configIndex < (int)m_ConfigStrings.size())
{
@ -2283,7 +2283,7 @@ bool CRainmeter::DeactivateConfig(CMeterWindow* meterWindow, int configIndex, bo
// Disable the config in the ini-file
WriteActive(meterWindow->GetSkinName(), -1);
return DeleteMeterWindow(meterWindow, bLater);
return DeleteMeterWindow(meterWindow, true);
}
return false;
}

View File

@ -180,7 +180,7 @@ public:
const std::vector<std::wstring>& GetAllThemes() { return m_Themes; }
void ActivateConfig(int configIndex, int iniIndex);
bool DeactivateConfig(CMeterWindow* meterWindow, int configIndex, bool bLater = true);
bool DeactivateConfig(CMeterWindow* meterWindow, int configIndex);
const std::wstring& GetPath() { return m_Path; }
const std::wstring& GetIniFile() { return m_IniFile; }