From 85923e8b4f9f1601f008a9120d376d944f2478a2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 26 Sep 2007 01:52:58 +0000 Subject: Fix plugin embedding toggling. git-svn-id: http://svn.drobilla.net/lad/ingen@777 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/NodeModule.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/libs/gui') diff --git a/src/libs/gui/NodeModule.cpp b/src/libs/gui/NodeModule.cpp index b59e1e23..722cc08a 100644 --- a/src/libs/gui/NodeModule.cpp +++ b/src/libs/gui/NodeModule.cpp @@ -156,10 +156,18 @@ NodeModule::embed_gui(bool embed) } } else { - if (_gui_item) - _gui_item->hide(); + if (_gui_item) { + delete _gui_item; + _gui_item = NULL; + } + + if (_gui) { + delete _gui; + _gui = NULL; + } _ports_y_offset = 0; + _width = 0; // resize() takes care of it.. } resize(); -- cgit v1.2.1