Don't try to auto-start engine for new sessions
[ardour.git] / gtk2_ardour / panner2d.cc
index f576a4ea00fac5dfeccaff4f69ab16e7f0b3b66c..57d54d5f47e52cb91b5a24ceab61bdce2aa8c24d 100644 (file)
@@ -43,7 +43,7 @@
 #include "public_editor.h"
 #include "ui_config.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace Gtk;
@@ -108,6 +108,9 @@ Panner2d::~Panner2d()
        for (Targets::iterator i = speakers.begin(); i != speakers.end(); ++i) {
                delete *i;
        }
+       for (Targets::iterator i = signals.begin(); i != signals.end(); ++i) {
+               delete *i;
+       }
 }
 
 void
@@ -1013,7 +1016,7 @@ Panner2dWindow::set_width ()
 bool
 Panner2dWindow::on_key_press_event (GdkEventKey* event)
 {
-       return relay_key_press (event, 0);
+       return relay_key_press (event, this);
 }
 
 bool