remove GUI object state when tracks/busses are removed.
[ardour.git] / gtk2_ardour / axis_view.h
index 7334945c2ca819ebc2d1491ad7813cf842f0930c..94f7708d9061e28b6d1c4644e4655ccdb6d1bcc4 100644 (file)
@@ -70,6 +70,12 @@ class AxisView : public virtual Selectable, public PBD::ScopedConnectionList, pu
                property_hashtable.emplace(property_name, s.str());
                gui_object_state().set_property<T> (state_id(), property_name, value);
        }
+    
+       void cleanup_gui_properties () {
+               /* remove related property node from the GUI state */
+               gui_object_state().remove_node (state_id());
+               property_hashtable.clear ();
+       }
 
        bool marked_for_display () const;
        virtual bool set_marked_for_display (bool);