]> sigrok.org Git - pulseview.git/blobdiff - pv/storesession.cpp
StoreSession: Fixed completion mechanism
[pulseview.git] / pv / storesession.cpp
index f6fef4635c630fadcb772c14e1013b96c2d61a17..221804c40baaf07721f7c229704f5cae072f1ca4 100644 (file)
@@ -198,6 +198,9 @@ void StoreSession::store_proc(shared_ptr<data::LogicSnapshot> snapshot)
                units_stored_ = start_sample >> progress_scale;
        }
 
+       // Zeroing the progress variables indicates completion
+       units_stored_ = unit_count_ = 0;
+
        progress_updated();
 
        output_.reset();