Commit 5ff46023 authored by Bianca Tost's avatar Bianca Tost

fixed seed actor not being completely removed from trajectory actor when...

fixed seed actor not being completely removed from trajectory actor when deleted; added test for seed actors to trajectory actors isConnectedTo()-method
parent 0e203ac2
......@@ -1577,6 +1577,12 @@ void MTrajectoryActor::onActorDeleted(MActor *actor)
if (sas.actor == actor)
{
removeSeedActor(sas.actor->getName());
releaseData();
updateActorData();
asynchronousDataRequest();
emitActorChangedSignal();
}
}
}
......@@ -1651,12 +1657,22 @@ bool MTrajectoryActor::isConnectedTo(MActor *actor)
}
// This actor is connected to the argument actor if the argument actor is
// the transfer function this actor.
// the transfer function of this actor.
if (transferFunction == actor)
{
return true;
}
// This actor is connected to the argument actor if the argument actor is
// a seeding actor of this actor.
for (SeedActorSettings& sas : computationSeedActorProperties)
{
if (sas.actor == actor)
{
return true;
}
}
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