Commit 6567a673 authored by Tobias Hunger's avatar Tobias Hunger

Fix possible crash in target

We need to make sure to remove RCs we delete from the lists held in
the updateDefaultRunConfigurations method.

Change-Id: Icf7908af3554e682af6ba9101058cb210e35f999
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 9072db09
......@@ -658,8 +658,10 @@ void Target::updateDefaultRunConfigurations()
}
// Do actual changes:
foreach (RunConfiguration *rc, toRemove)
foreach (RunConfiguration *rc, toRemove) {
removeRunConfiguration(rc);
existingConfigured.removeOne(rc); // make sure to also remove them from existingConfigured!
}
if (removeExistingUnconfigured) {
foreach (RunConfiguration *rc, existingUnconfigured)
......
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