From: Joel Holdsworth Date: Wed, 25 Dec 2013 19:26:44 +0000 (+0000) Subject: Remove all decoder traces when loading a file X-Git-Tag: pulseview-0.2.0~186 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7d0c935c488742ca45bdcd73bf8573e0e6f67aab;p=pulseview.git Remove all decoder traces when loading a file --- diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 8936574a..3213758e 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -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);