Fixed crash when the config is switched to the variant.

This commit is contained in:
spx
2011-01-28 18:06:54 +00:00
parent 78db448471
commit fdae154245
3 changed files with 4 additions and 12 deletions

View File

@ -511,14 +511,6 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
}
else
{
if (configs[i].active != 0)
{
CMeterWindow* meterWindow = Rainmeter->GetMeterWindow(configs[i].config);
if (meterWindow)
{
Rainmeter->DeactivateConfig(meterWindow, i);
}
}
Rainmeter->ActivateConfig(i, j);
}
return 0;