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/time_sink_c_impl.cc | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'gr-qtgui/lib/time_sink_c_impl.cc')

diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc
index 27d7eb3f3e..2edb83fa12 100644
--- a/gr-qtgui/lib/time_sink_c_impl.cc
+++ b/gr-qtgui/lib/time_sink_c_impl.cc
@@ -73,6 +73,9 @@ namespace gr {
 
     time_sink_c_impl::~time_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[i]);
-- 
cgit v1.2.3