fix crash when cmdline provides session name
[ardour.git] / gtk2_ardour / public_editor.cc
index 1b8b5c480155da25b1522fab64bb3221c564b078..6c5d528e1e9aad86d84496496955def2b5bc5c7f 100644 (file)
@@ -18,7 +18,6 @@
 */
 
 #include "public_editor.h"
-#include "editor.h"
 
 PublicEditor* PublicEditor::_instance = 0;
 
@@ -31,6 +30,7 @@ sigc::signal<void> PublicEditor::DropDownKeys;
 
 PublicEditor::PublicEditor ()
        : Window (Gtk::WINDOW_TOPLEVEL)
+       , VisibilityTracker (*((Gtk::Window*)this))
 {
 }