summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-26 01:52:58 +0000
committerDavid Robillard <d@drobilla.net>2007-09-26 01:52:58 +0000
commit85923e8b4f9f1601f008a9120d376d944f2478a2 (patch)
tree55fdcf4dd73d95ce304bb45c6088ffcb8bc69b86 /src
parent97faa683045e44563d25befe463e76f42c7d1a9b (diff)
downloadingen-85923e8b4f9f1601f008a9120d376d944f2478a2.tar.gz
ingen-85923e8b4f9f1601f008a9120d376d944f2478a2.tar.bz2
ingen-85923e8b4f9f1601f008a9120d376d944f2478a2.zip
Fix plugin embedding toggling.
git-svn-id: http://svn.drobilla.net/lad/ingen@777 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/libs/gui/NodeModule.cpp12
1 files changed, 10 insertions, 2 deletions
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();