Manage: Fix crash when loading a skin in some cases

This commit is contained in:
Birunthan Mohanathas 2013-03-10 12:17:15 +02:00
parent af8befd22b
commit ad59b70768

View File

@ -1053,7 +1053,9 @@ INT_PTR CDialogManage::CTabSkins::OnCommand(WPARAM wParam, LPARAM lParam)
std::pair<int, int> indexes = Rainmeter->GetMeterWindowIndex(m_SkinFolderPath, m_SkinFileName); std::pair<int, int> indexes = Rainmeter->GetMeterWindowIndex(m_SkinFolderPath, m_SkinFileName);
if (indexes.first != -1 && indexes.second != -1) if (indexes.first != -1 && indexes.second != -1)
{ {
m_HandleCommands = false;
Rainmeter->ActivateSkin(indexes.first, indexes.second); Rainmeter->ActivateSkin(indexes.first, indexes.second);
m_HandleCommands = true;
// Fake selection change to update controls // Fake selection change to update controls
NMHDR nm; NMHDR nm;