summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/const_sink_c_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-02-27 11:29:02 -0500
committerTom Rondeau <trondeau@vt.edu>2013-02-27 16:29:28 -0500
commit989ea0b76e5c4edddcd59e549bce1045536b144d (patch)
treecbda2d3b16f8c5c11250eb77cf948634becdb7de /gr-qtgui/lib/const_sink_c_impl.cc
parent46bceb9491075c08a3d665dd71ec8a9d70c13e25 (diff)
qtgui: these can be closed from two directions (block or qwidget), this closes all events for either way.
Diffstat (limited to 'gr-qtgui/lib/const_sink_c_impl.cc')
-rw-r--r--gr-qtgui/lib/const_sink_c_impl.cc3
1 files changed, 3 insertions, 0 deletions
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]);