aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/funnel_text_dialog.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-08-29 22:59:00 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2015-08-31 18:06:02 +0000
commit4e236e66c9f7add5dbe7106f5445b410d0f9c148 (patch)
treec4ab4e539cf3edf7e027f242e8439e089dbac6e1 /ui/qt/funnel_text_dialog.cpp
parent7dd834975fb9956dc7e8bef89cae111fe0b3610a (diff)
Qt/Lua: Call atclose when TextWindow closes
The close callback was never called because the destructor was never called. Change-Id: I9f6204858bc5d5e48d0aedc90b0e242ab70e161c Reviewed-on: https://code.wireshark.org/review/10321 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/funnel_text_dialog.cpp')
-rw-r--r--ui/qt/funnel_text_dialog.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/funnel_text_dialog.cpp b/ui/qt/funnel_text_dialog.cpp
index 07477facc3..0cf9a311bc 100644
--- a/ui/qt/funnel_text_dialog.cpp
+++ b/ui/qt/funnel_text_dialog.cpp
@@ -55,10 +55,18 @@ FunnelTextDialog::FunnelTextDialog() :
FunnelTextDialog::~FunnelTextDialog()
{
delete ui;
+}
+
+void FunnelTextDialog::reject()
+{
+ QDialog::reject();
if (close_cb_) {
close_cb_(close_cb_data_);
}
+
+ disconnect();
+ deleteLater();
}
struct _funnel_text_window_t *FunnelTextDialog::textWindowNew(const QString title)