diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-12 14:25:45 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-12 14:25:45 +0000 |
commit | eea186d6b912f91ac32d68dde4bdb772941c0779 (patch) | |
tree | 0c9082e422a5e95ae32d4b08eecbfe665f70d75d /gtk2_ardour | |
parent | 60904be8efad6928727101ff6eb1770c173f68ae (diff) |
properly teardown entire window for control protocol GUI
git-svn-id: svn://localhost/ardour2/branches/3.0@12259 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index d22ef625f2..ac9c11a5bb 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -722,7 +722,17 @@ private: if (!was_enabled) { ControlProtocolManager::instance().instantiate (*cpi); } else { + Gtk::Window* win = r[_model.editor]; + if (win) { + win->hide (); + } + ControlProtocolManager::instance().teardown (*cpi); + + if (win) { + delete win; + } + r[_model.editor] = 0; cpi->requested = false; } } |