]> sigrok.org Git - pulseview.git/blobdiff - pv/dialogs/storeprogress.hpp
Prevent Qt from crashing PV by only showing the first error
[pulseview.git] / pv / dialogs / storeprogress.hpp
index fd3558993ced162e12f0505c2f3ab0abd8ee4796..730a9e423d9a51aec37d2b9177106288202770fe 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef PULSEVIEW_PV_DIALOGS_STOREPROGRESS_HPP
 #define PULSEVIEW_PV_DIALOGS_STOREPROGRESS_HPP
 
+#include <atomic>
 #include <memory>
 #include <set>
 
@@ -27,6 +28,7 @@
 
 #include <pv/storesession.hpp>
 
+using std::atomic;
 using std::map;
 using std::pair;
 using std::shared_ptr;
@@ -63,6 +65,7 @@ private Q_SLOTS:
 
 private:
        pv::StoreSession session_;
+       atomic<bool> showing_error_;
 };
 
 }  // namespace dialogs