From 18deccb36fadcedd8deff7a3ebd975d389da9645 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Mon, 25 Jun 2012 11:11:05 +0300 Subject: [PATCH] Manage Skins: Fixed crash with empty skin folder --- Library/DialogManage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/DialogManage.cpp b/Library/DialogManage.cpp index 132248fd..2791e699 100644 --- a/Library/DialogManage.cpp +++ b/Library/DialogManage.cpp @@ -424,7 +424,11 @@ void CDialogManage::CTabSkins::Update(CMeterWindow* meterWindow, bool deleted) tvi.hInsertAfter = TVI_LAST; tvi.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE; tvi.item.iImage = tvi.item.iSelectedImage = 0; - PopulateTree(item, tvi); + + if (!Rainmeter->m_SkinFolders.empty()) + { + PopulateTree(item, tvi); + } } }