]> sigrok.org Git - pulseview.git/blobdiff - pv/views/viewbase.hpp
Fix #1035 by checking for exceptions when accessing config
[pulseview.git] / pv / views / viewbase.hpp
index 923d47fb515c2b5d96111f3ec0f074b0e1b339d8..b524c1797d0d1478ba4bd1eac36ee538a400d69a 100644 (file)
@@ -65,6 +65,12 @@ private:
 public:
        explicit ViewBase(Session &session, bool is_main_view = false, QWidget *parent = nullptr);
 
+       /**
+        * Resets the view to its default state after construction. It does however
+        * not reset the signal bases or any other connections with the session.
+        */
+       virtual void reset_view_state();
+
        Session& session();
        const Session& session() const;