diff --git a/traitsui/qt4/toolkit.py b/traitsui/qt4/toolkit.py index 839065e7e..a91f647c8 100644 --- a/traitsui/qt4/toolkit.py +++ b/traitsui/qt4/toolkit.py @@ -382,8 +382,8 @@ def destroy_control(self, control): # This may be called from within the finished() signal handler so we # need to do the delete after the handler has returned. - control.hide() control.deleteLater() + control.hide() def destroy_children(self, control): """Destroys all of the child controls of a specified GUI toolkit