]> sigrok.org Git - pulseview.git/commitdiff
DecodeSignal: Fix flawed PD stack restoration
authorSoeren Apel <redacted>
Thu, 6 Jul 2017 20:27:46 +0000 (22:27 +0200)
committerSoeren Apel <redacted>
Thu, 6 Jul 2017 20:27:46 +0000 (22:27 +0200)
Before, the libsigrokdecode sessions would be started without
having any channels assigned to it, which of course should be
avoided.

pv/data/decodesignal.cpp

index 1b06bec942f1c6cc1359cb7ba9c5d853569af339..8cbf230d1e8f0cddae1f5c28fdfaea54a92039c4 100644 (file)
@@ -508,11 +508,13 @@ void DecodeSignal::restore_settings(QSettings &settings)
 
                                // Include the newly created decode channels in the channel lists
                                update_channel_list();
+                               commit_decoder_channels();
                                break;
                        }
                }
 
                settings.endGroup();
+               channels_updated();
        }
 
        // Restore channel mapping