Manage Skins: Fixed crash with empty skin folder

This commit is contained in:
Birunthan Mohanathas 2012-06-25 11:11:05 +03:00
parent ccd3c10248
commit 18deccb36f

View File

@ -424,8 +424,12 @@ void CDialogManage::CTabSkins::Update(CMeterWindow* meterWindow, bool deleted)
tvi.hInsertAfter = TVI_LAST; tvi.hInsertAfter = TVI_LAST;
tvi.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE; tvi.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
tvi.item.iImage = tvi.item.iSelectedImage = 0; tvi.item.iImage = tvi.item.iSelectedImage = 0;
if (!Rainmeter->m_SkinFolders.empty())
{
PopulateTree(item, tvi); PopulateTree(item, tvi);
} }
}
} }
void CDialogManage::CTabSkins::SetControls() void CDialogManage::CTabSkins::SetControls()