summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2016-01-20 15:13:38 +0100
committerAnders Broman <a.broman58@gmail.com>2016-01-20 23:38:26 +0000
commit4b35048af377ffe7379d3bbf041a91740129e080 (patch)
tree3636e840e944b7069677a75cbef6fa45c0ea32b1
parent523ae612934131531d356dcf4d84637dedbafbc0 (diff)
downloadwireshark-4b35048af377ffe7379d3bbf041a91740129e080.tar.gz
Qt: ensure to call destructor when closing a few QDialog windows
Change-Id: I10d2a610e852fdc2f38b84e561f04783af0d612e Reviewed-on: https://code.wireshark.org/review/13453 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--ui/qt/about_dialog.cpp1
-rw-r--r--ui/qt/resolved_addresses_dialog.cpp1
-rw-r--r--ui/qt/tcp_stream_dialog.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/about_dialog.cpp b/ui/qt/about_dialog.cpp
index 83bbdf8004..84cbcee10f 100644
--- a/ui/qt/about_dialog.cpp
+++ b/ui/qt/about_dialog.cpp
@@ -148,6 +148,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
+ setAttribute(Qt::WA_DeleteOnClose, true);
QFile f_authors;
QFile f_license;
const char *constpath;
diff --git a/ui/qt/resolved_addresses_dialog.cpp b/ui/qt/resolved_addresses_dialog.cpp
index 22715019f7..2318ed4a1a 100644
--- a/ui/qt/resolved_addresses_dialog.cpp
+++ b/ui/qt/resolved_addresses_dialog.cpp
@@ -177,6 +177,7 @@ ResolvedAddressesDialog::ResolvedAddressesDialog(QWidget *parent, CaptureFile *c
file_name_(tr("[no file]"))
{
ui->setupUi(this);
+ setAttribute(Qt::WA_DeleteOnClose, true);
QStringList title_parts = QStringList() << tr("Resolved Addresses");
diff --git a/ui/qt/tcp_stream_dialog.cpp b/ui/qt/tcp_stream_dialog.cpp
index 4362577cd2..9eda3a5954 100644
--- a/ui/qt/tcp_stream_dialog.cpp
+++ b/ui/qt/tcp_stream_dialog.cpp
@@ -96,6 +96,7 @@ TCPStreamDialog::TCPStreamDialog(QWidget *parent, capture_file *cf, tcp_graph_ty
int graph_idx = -1;
ui->setupUi(this);
+ setAttribute(Qt::WA_DeleteOnClose, true);
struct tcpheader *header = select_tcpip_session(cap_file_, &current);
if (!header) {