From 552e995297d7706790ed2dfaab75749e914ad317 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 9 Jul 2015 12:40:51 -0400 Subject: save/restore tabbable state --- gtk2_ardour/window_manager.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gtk2_ardour/window_manager.cc') diff --git a/gtk2_ardour/window_manager.cc b/gtk2_ardour/window_manager.cc index 3ab742199d..e876668e59 100644 --- a/gtk2_ardour/window_manager.cc +++ b/gtk2_ardour/window_manager.cc @@ -115,15 +115,12 @@ Manager::add_state (XMLNode& root) const for (Windows::const_iterator i = _windows.begin(); i != _windows.end(); ++i) { /* don't save state for temporary proxy windows */ + if (dynamic_cast (*i)) { continue; } - if (dynamic_cast (*i)) { - ProcessorWindowProxy *pi = dynamic_cast (*i); - root.add_child_nocopy (pi->get_state()); - } else { - root.add_child_nocopy ((*i)->get_state()); - } + + root.add_child_nocopy ((*i)->get_state()); } } -- cgit v1.2.3