From: Soeren Apel Date: Tue, 9 Jun 2020 09:11:36 +0000 (+0200) Subject: DecodeSignal: Ignore decode signals when restoring channel assignment X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2cc024608cd20a78ad6765adfa0d50792e150c23;p=pulseview.git DecodeSignal: Ignore decode signals when restoring channel assignment --- diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index 28157794..98275bad 100644 --- a/pv/data/decodesignal.cpp +++ b/pv/data/decodesignal.cpp @@ -822,7 +822,7 @@ void DecodeSignal::restore_settings(QSettings &settings) QString assigned_signal_name = settings.value("assigned_signal_name").toString(); for (const shared_ptr& signal : signalbases) - if (signal->name() == assigned_signal_name) + if ((signal->name() == assigned_signal_name) && (signal->type() != SignalBase::DecodeChannel)) channel->assigned_signal = signal.get(); channel->initial_pin_state = settings.value("initial_pin_state").toInt();