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:
parent
523ae61293
commit
4b35048af3
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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_, ¤t);
|
||||
if (!header) {
|
||||
|
|
Loading…
Reference in New Issue