From 8722009407d04a51edf061e27524947cf753cf02 Mon Sep 17 00:00:00 2001 From: spx Date: Wed, 24 Nov 2010 18:08:11 +0000 Subject: [PATCH] Small fixes for r623. --- Library/MeterWindow.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index 2fb2d8e2..91db1b88 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -1540,6 +1540,7 @@ void CMeterWindow::ReadConfig() m_AutoSelectScreen = false; m_AlphaValue = 255; m_FadeDuration = 250; + m_ConfigGroup = L""; CConfigParser parser; parser.Initialize(iniFile.c_str(), m_Rainmeter); @@ -1714,8 +1715,12 @@ bool CMeterWindow::ReadSkin() m_Parser.Initialize(iniFile.c_str(), m_Rainmeter, this); // Global settings - m_ConfigGroup += L"|"; - m_ConfigGroup += m_Parser.ReadString(L"Rainmeter", L"Group", m_ConfigGroup.c_str()); + std::wstring group = m_Parser.ReadString(L"Rainmeter", L"Group", L""); + if (!group.empty()) + { + m_ConfigGroup += L"|"; + m_ConfigGroup += group; + } InitializeGroup(m_ConfigGroup); // Check the version