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/freq_sink_c_impl.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gr-qtgui/lib/freq_sink_c_impl.cc') diff --git a/gr-qtgui/lib/freq_sink_c_impl.cc b/gr-qtgui/lib/freq_sink_c_impl.cc index 3755df0552..b1f9a2b1a1 100644 --- a/gr-qtgui/lib/freq_sink_c_impl.cc +++ b/gr-qtgui/lib/freq_sink_c_impl.cc @@ -86,6 +86,9 @@ namespace gr { freq_sink_c_impl::~freq_sink_c_impl() { + if(!d_main_gui->isClosed()) + d_main_gui->close(); + for(int i = 0; i < d_nconnections; i++) { fft::free(d_residbufs[i]); fft::free(d_magbufs[i]); -- cgit v1.2.3