Fix another crash at exit:
[ardour.git] / gtk2_ardour / keyeditor.cc
index 36b0c0bd49acd2705c2a116e45d1bc98529155bf..aea8185f3bc5758456fbbadf5baf37ba816e5fbc 100644 (file)
@@ -50,7 +50,7 @@
 #include "keyboard.h"
 #include "keyeditor.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace Gtk;
@@ -122,7 +122,7 @@ KeyEditor::KeyEditor ()
        add (vpacker);
 
        unbind_button.set_sensitive (false);
-       UpdateBindings.connect (sigc::mem_fun (*this, &KeyEditor::refresh));
+       _refresh_connection = UpdateBindings.connect (sigc::mem_fun (*this, &KeyEditor::refresh));
 }
 
 void