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>
This commit is contained in:
Pascal Quantin 2016-01-20 15:13:38 +01:00 committed by Anders Broman
parent 523ae61293
commit 4b35048af3
3 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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");

View File

@ -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) {