Ignore updates of not existing groups in RsGenExchange::processGrpMask.

Solves:
"Error code: no such column: subscribeFlagGXS_MASK_HACK"
This commit is contained in:
thunder2 2015-08-27 21:11:24 +02:00
parent 6e1a8fac10
commit 4cc1df3c12

View File

@ -1718,7 +1718,7 @@ void RsGenExchange::processGrpMetaChanges()
// process mask
bool ok = processGrpMask(g.grpId, g.val);
ok &= mDataStore->updateGroupMetaData(g) == 1;
ok = ok && (mDataStore->updateGroupMetaData(g) == 1);
if(ok)
{
@ -1761,6 +1761,12 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC
if((mit = grpMetaMap.find(grpId)) != grpMetaMap.end())
{
grpMeta = mit->second;
if (!grpMeta)
{
std::cerr << "RsGenExchange::processGrpMask() Ignore update for not existing grp id " << grpId.toStdString();
std::cerr << std::endl;
return false;
}
ok = true;
}