Skip to content
Snippets Groups Projects
Commit b437b988 authored by Aurindam Jana's avatar Aurindam Jana Committed by Tobias Hunger
Browse files

KitManager: Scope KitGuard


Scope KitGuard correctly to avoid emitting kitUpdated signal
when adding a kit.

Change-Id: Id9b0f92c7c2be8adaf7490cfbecfaceb8717b80f
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent f841f374
No related branches found
No related tags found
No related merge requests found
......@@ -446,12 +446,14 @@ void KitManager::addKit(Kit *k)
if (!k)
return;
KitGuard g(k);
foreach (KitInformation *ki, d->m_informationList) {
if (!k->hasValue(ki->dataId()))
k->setValue(ki->dataId(), ki->defaultValue(k));
else
ki->fix(k);
{
KitGuard g(k);
foreach (KitInformation *ki, d->m_informationList) {
if (!k->hasValue(ki->dataId()))
k->setValue(ki->dataId(), ki->defaultValue(k));
else
ki->fix(k);
}
}
d->m_kitList.append(k);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment