Fixed errors on Refresh All from context menu or Manage.

This commit is contained in:
jsmorley 2012-05-21 10:21:09 -04:00
parent 4039940ec1
commit 74c3c2cf5c
2 changed files with 3 additions and 3 deletions

View File

@ -449,8 +449,8 @@ private:
std::list<CMeasure*> m_Measures;
std::list<CMeter*> m_Meters;
const std::wstring& m_SkinName;
const std::wstring& m_SkinIniFile;
const std::wstring m_SkinName;
const std::wstring m_SkinIniFile;
int m_UpdateCounter;
UINT m_MouseMoveCounter;

View File

@ -1253,7 +1253,7 @@ void CRainmeter::ActivateConfig(int configIndex, int iniIndex)
std::map<std::wstring, CMeterWindow*>::const_iterator iter = m_MeterWindows.find(skinConfig);
if (iter != m_MeterWindows.end())
{
if (&((*iter).second)->GetSkinIniFile() == &skinIniFile)
if (((*iter).second)->GetSkinIniFile() == skinIniFile)
{
LogWithArgs(LOG_WARNING, L"!ActivateConfig: \"%s\" already active", skinConfig.c_str());
return;