From: Joel Holdsworth Date: Sat, 22 Nov 2014 17:13:45 +0000 (+0000) Subject: StoreSession: Fixed completion mechanism X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=e0e560a5b61ce41b1907d699911cae86a793d5d7 StoreSession: Fixed completion mechanism This fixes bug #451 --- diff --git a/pv/storesession.cpp b/pv/storesession.cpp index f6fef46..221804c 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();