fix a crash when deleting a MIDI region with CC automation (see recipe below)
[ardour.git] / gtk2_ardour / keyeditor.h
index a5662333ce2e5e2a115a47fe68c563595bba6d20..3e4c5d068ccdc460f69c4ac2c90d24f8d4f01851 100644 (file)
@@ -45,6 +45,10 @@ class KeyEditor : public ArdourWindow
 
        static sigc::signal<void> UpdateBindings;
 
+       void disconnect () {
+               _refresh_connection.disconnect ();
+       }
+
        private:
        class Tab : public Gtk::VBox
        {
@@ -124,6 +128,8 @@ class KeyEditor : public ArdourWindow
        void toggle_sort_type ();
        void search_string_updated (const std::string&);
        void print () const;
+
+       sigc::connection _refresh_connection;
 };
 
 #endif /* __ardour_gtk_key_editor_h__ */