]> sigrok.org Git - pulseview.git/commitdiff
Remove all decoder traces when loading a file
authorJoel Holdsworth <redacted>
Wed, 25 Dec 2013 19:26:44 +0000 (19:26 +0000)
committerJoel Holdsworth <redacted>
Wed, 25 Dec 2013 19:26:44 +0000 (19:26 +0000)
pv/sigsession.cpp

index 8936574a4e238c3f9b3fa65afce4a92985bdee8c..3213758ef263894c215cc83055849593700aa099 100644 (file)
@@ -118,6 +118,7 @@ void SigSession::load_file(const string &name,
                sr_dev_inst *const sdi = (sr_dev_inst*)devlist->data;
                g_slist_free(devlist);
 
+               _decode_traces.clear();
                update_signals(sdi);
                read_sample_rate(sdi);
 
@@ -132,6 +133,7 @@ void SigSession::load_file(const string &name,
                        error_handler)))
                        return;
 
+               _decode_traces.clear();
                update_signals(in->sdi);
                read_sample_rate(in->sdi);