- shared_ptr<data::Decoder> decoder(
- new data::Decoder(dec, probes, options));
+ // Create the decoder
+ shared_ptr<data::Decoder> decoder(new data::Decoder(dec));
+
+ // Auto select the initial probes
+ for(const GSList *i = dec->probes; i; i = i->next)
+ {
+ const srd_probe *const probe = (const srd_probe*)i->data;
+ BOOST_FOREACH(shared_ptr<view::Signal> s, _signals)
+ {
+ shared_ptr<view::LogicSignal> l =
+ dynamic_pointer_cast<view::LogicSignal>(s);
+ if (l && QString(probe->name).toLower().contains(
+ l->get_name().toLower()))
+ probes[probe] = l;
+ }
+ }
+
+ decoder->set_probes(probes);
+
+ // Create the decode signal