mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Manage Skins: Fixed crash with empty skin folder
This commit is contained in:
parent
ccd3c10248
commit
18deccb36f
@ -424,9 +424,13 @@ 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()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user