From e7632b57821df2a96f2f4895f2dcae6c464a7b01 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Fri, 3 Feb 2012 10:37:26 +0000 Subject: [PATCH] Additional change to r1155. --- Library/Rainmeter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index 40ae14fd..037db643 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -1163,8 +1163,8 @@ void CRainmeter::DeleteMeterWindow(CMeterWindow* meterWindow, bool force) else if ((*iter).second == meterWindow) { m_MeterWindows.erase(iter); - delete meterWindow; - return; + force = true; + break; } } @@ -1174,6 +1174,7 @@ void CRainmeter::DeleteMeterWindow(CMeterWindow* meterWindow, bool force) } else if (force) { + CDialogManage::UpdateSkins(meterWindow, true); delete meterWindow; } }