From: Joel Holdsworth Date: Sat, 22 Nov 2014 17:13:45 +0000 (+0000) Subject: StoreSession: Fixed completion mechanism X-Git-Tag: pulseview-0.3.0~429 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=e0e560a5b61ce41b1907d699911cae86a793d5d7;hp=51cf49fe312f92cccde3e861d357e4b459976c0d StoreSession: Fixed completion mechanism This fixes bug #451 --- diff --git a/pv/storesession.cpp b/pv/storesession.cpp index f6fef463..221804c4 100644 --- a/pv/storesession.cpp +++ b/pv/storesession.cpp @@ -198,6 +198,9 @@ void StoreSession::store_proc(shared_ptr snapshot) units_stored_ = start_sample >> progress_scale; } + // Zeroing the progress variables indicates completion + units_stored_ = unit_count_ = 0; + progress_updated(); output_.reset();