summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/NodeModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/NodeModule.cpp')
-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();