Fixed Group bangs for skins

This commit is contained in:
Birunthan Mohanathas 2012-05-12 14:45:11 +03:00
parent 5ac6f94f3b
commit c1c4256a68

View File

@ -299,13 +299,12 @@ void CRainmeter::BangGroupWithArgs(BANGCOMMAND bang, std::vector<std::wstring>&
std::multimap<int, CMeterWindow*> windows;
GetMeterWindowsByLoadOrder(windows, args[numOfArgs]);
args.resize(numOfArgs); // Remove extra parameters (including group)
std::multimap<int, CMeterWindow*>::const_iterator iter = windows.begin();
args.push_back(std::wstring());
std::wstring& lastArg = args.back();
for (; iter != windows.end(); ++iter)
{
lastArg = (*iter).second->GetSkinName();
BangWithArgs(bang, args, numOfArgs, meterWindow);
BangWithArgs(bang, args, numOfArgs, (*iter).second);
}
}
else