diff options
author | David Robillard <d@drobilla.net> | 2006-09-14 23:14:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-09-14 23:14:53 +0000 |
commit | f9f760893e4fa1ff850becf7d98bd4c6af8b8d73 (patch) | |
tree | 1cf83435ef5ee08c31bb9ddc11b9dbca96264158 /src/progs/ingenuity/PatchWindow.cpp | |
parent | a100c20612fc4f7f30372f579e355f782befa7e2 (diff) | |
download | ingen-f9f760893e4fa1ff850becf7d98bd4c6af8b8d73.tar.gz ingen-f9f760893e4fa1ff850becf7d98bd4c6af8b8d73.tar.bz2 ingen-f9f760893e4fa1ff850becf7d98bd4c6af8b8d73.zip |
Patch port and breadcrumb fixes.
git-svn-id: http://svn.drobilla.net/lad/ingen@135 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchWindow.cpp')
-rw-r--r-- | src/progs/ingenuity/PatchWindow.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/progs/ingenuity/PatchWindow.cpp b/src/progs/ingenuity/PatchWindow.cpp index 07bcb781..d3bfd14b 100644 --- a/src/progs/ingenuity/PatchWindow.cpp +++ b/src/progs/ingenuity/PatchWindow.cpp @@ -161,15 +161,23 @@ PatchWindow::set_patch(CountedPtr<PatchModel> patch, CountedPtr<PatchView> view) m_view = view ? view : PatchView::create(patch); assert(m_view); + // Add view to ourself + if (m_view->get_parent()) + m_view->get_parent()->remove(*m_view); + m_viewport->remove(); m_viewport->add(*m_view.get()); + + // Add our breadcrumbs to the view + if (m_breadcrumb_box->get_parent()) + m_breadcrumb_box->get_parent()->remove(*m_breadcrumb_box); + m_view->breadcrumb_container()->remove(); m_view->breadcrumb_container()->add(*m_breadcrumb_box); m_breadcrumb_box->build(patch->path(), m_view); m_breadcrumb_box->show(); - show_all(); //m_menu_view_control_window->property_sensitive() = patch->has_control_inputs(); @@ -190,6 +198,8 @@ PatchWindow::set_patch(CountedPtr<PatchModel> patch, CountedPtr<PatchView> view) m_patch->destroyed_sig.connect(sigc::mem_fun(this, &PatchWindow::patch_destroyed)); + show_all(); + m_enable_signal = true; } |