Qt/ApplicationComponents/pqDeleteReaction.cxx
foreach (pqPipelineSource* source, selectedSources)
    {
    QList<pqPipelineSource*> consumers = source->getAllConsumers();
    for (int cc=0; cc < consumers.size(); cc++)
      {
      pqPipelineSource* consumer = consumers[cc];
      if (consumer && !selectedSources.contains(consumer))
        {
        return false;
        }
      }
    }
// Now ensure that all consumers for the current sources don't have consumers
// outside the selectedSources, then alone can we delete the selected items.
Now ensure that all consumers for the current sources don't have consumers
outside the selectedSources, then alone can we delete the selected items.
Now ensure that all consumers for the current sources don ' t have consumers outside the selectedSources then alone can we delete the selected items .
foreach (pqPipelineSource* source, selectedSources)
    {
    QList<pqPipelineSource*> consumers = source->getAllConsumers();
    for (int cc=0; cc < consumers.size(); cc++)
      {
      pqPipelineSource* consumer = consumers[cc];
      if (consumer && !selectedSources.contains(consumer))
        {
        return false;
        }
      }
    }
foreach ( pqPipelineSource * source , selectedSources ) { QList < pqPipelineSource * > consumers = source -> getAllConsumers ( ) ; for ( int cc = 0 ; cc < consumers . size ( ) ; cc ++ ) { pqPipelineSource * consumer = consumers [ cc ] ; if ( consumer && ! selectedSources . contains ( consumer ) ) { return false ; } } }
Now ensure that all consumers for the current sources don't have consumers
outside the selectedSources, then alone can we delete the selected items.
Now ensure that all consumers for the current sources don ' t have consumers outside the selectedSources then alone can we delete the selected items .