summaryrefslogtreecommitdiff
path: root/gtk2_ardour/window_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/window_manager.cc')
-rw-r--r--gtk2_ardour/window_manager.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/window_manager.cc b/gtk2_ardour/window_manager.cc
index 4a3d5f6ce4..986e6ade3a 100644
--- a/gtk2_ardour/window_manager.cc
+++ b/gtk2_ardour/window_manager.cc
@@ -28,6 +28,7 @@
#include "ardour_dialog.h"
#include "ardour_window.h"
#include "window_manager.h"
+#include "processor_box.h"
#include "i18n.h"
@@ -106,7 +107,12 @@ Manager::add_state (XMLNode& root) const
if (dynamic_cast<ProxyTemporary*> (*i)) {
continue;
}
- root.add_child_nocopy ((*i)->get_state());
+ if (dynamic_cast<ProcessorWindowProxy*> (*i)) {
+ ProcessorWindowProxy *pi = dynamic_cast<ProcessorWindowProxy*> (*i);
+ root.add_child_nocopy (pi->get_state());
+ } else {
+ root.add_child_nocopy ((*i)->get_state());
+ }
}
}