From 989ea0b76e5c4edddcd59e549bce1045536b144d Mon Sep 17 00:00:00 2001 From: Tom Rondeau <trondeau@vt.edu> Date: Wed, 27 Feb 2013 11:29:02 -0500 Subject: qtgui: these can be closed from two directions (block or qwidget), this closes all events for either way. --- gr-qtgui/lib/const_sink_c_impl.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gr-qtgui/lib/const_sink_c_impl.cc') diff --git a/gr-qtgui/lib/const_sink_c_impl.cc b/gr-qtgui/lib/const_sink_c_impl.cc index 9b01d1659e..b623dc2175 100644 --- a/gr-qtgui/lib/const_sink_c_impl.cc +++ b/gr-qtgui/lib/const_sink_c_impl.cc @@ -75,6 +75,9 @@ namespace gr { const_sink_c_impl::~const_sink_c_impl() { + if(!d_main_gui->isClosed()) + d_main_gui->close(); + // d_main_gui is a qwidget destroyed with its parent for(int i = 0; i < d_nconnections; i++) { fft::free(d_residbufs_real[i]); -- cgit v1.2.3