However, don't do this for the StoreSession. Reason is that we
only want to save the original data and not treat any converted
data as its own channel.
// Auto select the initial channels
for (const srd_channel *pdch : all_channels)
for (shared_ptr<data::SignalBase> b : signalbases_) {
- if (b->type() == data::SignalBase::LogicChannel) {
+ if (b->logic_data()) {
if (QString::fromUtf8(pdch->name).toLower().
contains(b->name().toLower()))
channels[pdch] = b;
for (const shared_ptr<data::SignalBase> &b : sig_list) {
assert(b);
- if (b->type() == data::SignalBase::LogicChannel && b->enabled()) {
+ if (b->logic_data() && b->enabled()) {
selector->addItem(b->name(),
qVariantFromValue((void*)b.get()));