Skip to content

Commit 93aba99

Browse files
committed
node widget fix causing seg fault.
1 parent 00d06ba commit 93aba99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

NodeGraphQt/nodes/base_node.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ def add_custom_widget(self, widget, widget_type=None, tab=None):
204204
#: redraw node to address calls outside the "__init__" func.
205205
self.view.draw_node()
206206

207+
#: HACK: calling the .parent() function here on the widget as it seems
208+
# to address a seg fault issue when exiting the application.
209+
widget.parent()
210+
207211
def add_combo_menu(self, name, label='', items=None, tooltip=None,
208212
tab=None):
209213
"""

0 commit comments

Comments
 (0)