Commit 412dd23e authored by Tobias Hunger's avatar Tobias Hunger

ProjectExplorer: Simplify code a little bit

Use an QTC_ASSERT in favor of an if. This may not happen.

Change-Id: I4e8d58210f9caff9b8ae7d0fccf764d8ceeace9e
Reviewed-by: default avatarhjk <>
parent 26c7afdf
......@@ -201,8 +201,7 @@ void Project::addTarget(Target *t)
bool Project::removeTarget(Target *target)
if (!target || !d->m_targets.contains(target))
return false;
QTC_ASSERT(target && d->m_targets.contains(target), return false);
if (BuildManager::isBuilding(target))
return false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment